Skip to main content
IBM Quantum Platform
Informations sur la traduction

D'autres traductions de cette page seront bientôt disponibles.

samplomatic.build

samplomatic.build(circuit: QuantumCircuit, debug: bool = False) → tuple[QuantumCircuit, Samplex]

GitHub

Build a circuit template and samplex for the given boxed-up circuit.

Note

The template circuit does not preserve the global_phase of the input circuit, it is always set to zero.

Parameters

  • circuit – The circuit to build.
  • debug – Whether to populate samplex nodes with information that traces them back to the boxes that generated them. Tracing information is based on ref attributes of box annotations.

Returns

The built template circuit and the corresponding samplex.

Cette page a-t-elle été utile ?
Signaler un bogue, une coquille ou proposer du contenu sur GitHub.