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_qubitsbecomes onelaser_reseton those qubits;crotxpi2becomescrotx, the toolchain’s name for the same gate, with no parameter;rzandsxstay as they are.
Barriers and Pauli readout requests are left out: the device reads its register out after every circuit.
- Parameters:
circuit (
QuantumCircuit) – Native circuit compiled forgateset.gateset (
FixedCROTGateSet) – The gate set the circuit was compiled for.
- Return type:
- Returns:
The circuit in the toolchain’s gate names, with the same global phase.
- Raises:
ValidationError – If
gatesetis not aFixedCROTGateSet, a run of resets is not exactlygateset.spam_qubits, or the circuit holds an instruction other than these.