iqm.pulse.utils.circuit_to_gate_implementation

iqm.pulse.utils.circuit_to_gate_implementation#

iqm.pulse.utils.circuit_to_gate_implementation(circuit, circuit_locus)#

Wrap a circuit to a single GateImplementation that can then be registered as a gate.

Returns a composite GateImplementation which, when called, produces a TimeBox with the circuit contents scheduled ASAP. circuit must contain only gates that are registered in IQM Pulse. The gate implementation does not need calibration data of its own: it uses the calibration of the member gates.

Parameters:
  • circuit (Circuit) – Circuit to wrap, typically a small subset of a larger circuit.

  • circuit_locus (Locus) – All the locus component names used in circuit, in the order they appear in the gate locus.

Returns:

Composite gate implementation class which can be registered to iqm-pulse as an implementation of a new gate.

Return type:

type[CompositeGate]