qrunch.quantum.circuits.translators.guppy_translator
Translator that translates Kvantify Qrunch circuits to Guppy programs.
Classes
Translator that translates from synthesized universal gate circuit to GuppyProgram. |
- class GuppyTranslator
Bases:
Translator[GuppyProgram]Translator that translates from synthesized universal gate circuit to GuppyProgram.
Translates the universal gates in SynthesizedUniversalGateCircuit into Guppy programs. Phase gates are lowered to measurement-equivalent RZ operations. All Only qubits referenced by gates or final logical outputs are allocated. Final mapped logical qubits are measured and recorded in logical order; other active qubits are discarded without measurement.
- __init__(*args, **kwargs)
- translate(synthesized_circuit: SynthesizedUniversalGateCircuit) GuppyProgram
Translate a SynthesizedUniversalGateCircuit to a GuppyProgram.
Requires that all parameters are fully specified and finite.
- Parameters:
synthesized_circuit (SynthesizedUniversalGateCircuit) – Circuit to translate.
- Return type: