Learn how to use our hardware-native gateset to run a circuit with Qiskit
v0.3.1
of the Qiskit IonQ Provider.
Gates are provided as part of the qiskit-ionq
package, including:
GPIGate(phi)
GPI2Gate(phi)
MSGate(phi0, phi1, theta=0.25)
for Aria systemsZZGate(theta)
for Forte systemscircuit.append()
method:
qiskit.circuit.library
, but these gates are not equivalent to the IonQ native gates. To build a circuit in IonQ native gates, make sure you’re using the gates imported from qiskit_ionq
.
For a complete code example including circuit submission, skip to the full code examples below.
v0.5.1
of the Qiskit IonQ Provider.
Start with the usual imports, plus Qiskit’s transpile()
method:
IonQProvider
and backend, using gateset="native"
. Qiskit’s transpiler can use the target gateset defined by this backend.
transpile()
method and the native-gates backend to convert the circuit to IonQ’s native gateset:
gateset="qis"
, the backend will expect circuits defined in abstract gates.
qc_native
, either by building it in native gates directly or building it in abstract gates and then transpiling it, you can submit it to the native gate backend: