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.

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.