samplomatic.build¶
- samplomatic.build(circuit: QuantumCircuit, debug: bool = False) tuple[QuantumCircuit, Samplex][source]¶
Build a circuit template and samplex for the given boxed-up circuit.
Note
The template circuit does not preserve the
global_phaseof 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
refattributes of box annotations.
- Returns:
The built template circuit and the corresponding samplex.