CircuitTranspiler to transpile a QuantumCircuit into another QuantumCircuit containing only GPi, GPi2, and MS gates. Note that the converted circuit contains IonQ native gates and only the measurement in the computational basis is guaranteed to match between before and after conversion.
- class quri_parts.ionq.circuit.transpile.IonQNativeTranspiler(epsilon: float = 1e-06)#
CircuitTranspiler, which converts RX, RY, RZ, XX gates into GPi, GPi2, MS gates.
The conversion process to the native gates is a direct porting of the process of the code in IonQ’s introductory article. Due to the nature of the conversion process, each qubit may acquire an arbitrary extra phase. Therefore, only the measurement in the computational basis is guaranteed to match between before and after conversion.
- property epsilon: float#
- class quri_parts.ionq.circuit.transpile.CNOT2RXRYXXTranspiler(*args, **kwargs)#
CircuitTranspiler, which decomposes CNOT gates into sequences of RX, RY, and XX gates.
- : Dmitri Maslov,
Basic circuit compilation techniques for an ion-trap quantum machine, New J. Phys. 19, 023035 (2017).
- property target_gate_names: Sequence[str]#
Returns the set of gate names to be decomposed.”.