to_xeedq_circuit

to_xeedq_circuit(circuit, gateset)

Write a compiled circuit in the gate names of the XeedQ toolchain.

The gates keep their order:

  • a run of resets on exactly gateset.spam_qubits becomes one laser_reset on those qubits;

  • crotxpi2 becomes crotx, the toolchain’s name for the same gate, with no parameter;

  • rz and sx stay as they are.

Barriers and Pauli readout requests are left out: the device reads its register out after every circuit.

Parameters:
Return type:

QuantumCircuit

Returns:

The circuit in the toolchain’s gate names, with the same global phase.

Raises:

ValidationError – If gateset is not a FixedCROTGateSet, a run of resets is not exactly gateset.spam_qubits, or the circuit holds an instruction other than these.