qbraid.transforms.pytket.pytket_ionq_transform
- pytket_ionq_transform(circuit)[source]
Compiles a Braket circuit to a Braket circuit that can run on IonQ Harmony.
- Parameters:
circuit (pytket.circuit.Circuit) – The input PyTKET circuit to be transformed.
- Returns:
The transformed PyTKET circuit that can run on IonQ Harmony.
- Return type:
pytket.circuit.Circuit
Notes
If the input circuit is a braket Circuit, the function transpiles it to a
pytket.circuit.Circuit
before compilation.The circuit is transpiled using qBraid’s transpiler, if it contains any of the following gates:
CPhaseShift00 CPhaseShift01 CPhaseShift10 CV ECR GPi GPi2 MS PSwap Unitary
Otherwise, the circuit is transpiled using
pytket-braket
’sbraket_to_tk
.