qbraid.compiler.braket.braket_ionq_compile

braket_ionq_compile(circuit)[source]

Compiles a Braket circuit to a Braket circuit that can run on IonQ Harmony.

Parameters:

circuit (Union[braket.circuits.Circuit, pytket.circuit.Circuit]) – The input Braket or PyTKET circuit to be compiled.

Returns:

The compiled Braket circuit that can run on IonQ Harmony.

Return type:

braket.circuits.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’s braket_to_tk.