from_xeedq_circuit
- from_xeedq_circuit(circuit, gateset)
Read a circuit written in the gate names of the XeedQ toolchain.
The result is a circuit
compile()takes:a
laser_reseton exactlygateset.spam_qubitsbecomes areseton each of them, between two barriers;crotxwith no parameter becomescrotxpi2. QUASAR’s owncrotxtakes an angle, and stays as it is;every other instruction stays as it is.
- Parameters:
circuit (
QuantumCircuit) – Circuit in the toolchain’s gate names.gateset (
FixedCROTGateSet) – The gate set the circuit is to be compiled for.
- Return type:
- Returns:
The circuit in QUASAR’s gate names, with the same registers and global phase.
- Raises:
ValidationError – If
gatesetis not aFixedCROTGateSet, or alaser_resetis not on exactlygateset.spam_qubits.