Learn how to use our hardware-native gateset to run a circuit with the IonQ API
gateset
to "native"
inside the circuit body. This is an optional parameter that defaults to "qis"
, which signifies our abstract gateset based on the general-purpose gates of quantum information science (QIS).
circuit
array must only use native gates. These are formatted similar to QIS gates. The only gates allowed in a native gate circuit are gpi
, gpi2
, and either ms
or zz
depending on the backend. You cannot mix and match native and abstract gates in the same circuit.
gate
: a string representation of the gate name. This works just like the abstract gate interface, but you can only use the available native gates: gpi
, gpi2
, ms
, and zz
. If you submit any other gates in the array, you’ll receive an error.
phase
or phases
: a number representation of the phase parameter or parameters in the gate. It is represented in turns, where one turn is 2π radians. We accept floating point values between -1 and 1 for this parameter.
angle
: an optional number representation of the angle parameter, available for the MS gate only. This value is also represented in turns and can range from 0 to 0.25 (fully entangling), with 0.25 being the default.
target
or targets
: the number index (starting from zero) of the qubit to apply the gate to. For two-qubit gates, use an array of qubit indices labeled targets
instead.
Gate | Description | Parameters |
---|---|---|
gpi | GPI gate | phase , target |
gpi2 | GPI2 gate | phase , target |
ms | Mølmer–Sørensen gate (only on Aria systems) | phases , angle (optional), targets |
zz | ZZ gate (only on Forte systems) | angle , targets |
native_gates_circuit.json
, and submit it: