Skip to main content
IBM Quantum Platform

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.

Was this page helpful?
Report a bug, typo, or request content on GitHub.