X, Z,
H, T, and CX but does not contain arbitrary-angle rotation gates such as RX,
the platform uses the Solovay-Kitaev algorithm to approximate
single-qubit gates when necessary. You can set the maximum iterations of the
Solovay-Kitaev algorithm in the preferences, thus tuning the algorithm target
accuracy. (Larger values usually result in better and longer approximations,
at the expense of longer running times.)
Specifying a Backend
To synthesize your quantum program for a specific backend, specify the backend provider and the name of the backend. The platform supports these backend providers:- Amazon Braket: All gate-based backends in Amazon Braket including all Rigetti devices,
Lucy, andIonQ Device. - Azure Quantum:
ionqandquantinuum. - IBM Quantum: Those listed on IBM Quantum’s official website. Note that you should specify the name of the backend without the
ibmq_prefix.
- SDK
Customizing Hardware Settings
To synthesize the quantum program for hardware that is not available in the platform, you can specify the custom settings of the hardware. This includes the basis gate set and the connectivity map of the hardware. Note that all hardware parameters are optional.Basis Gate Set
These are the allowed gates:- Single-qubit gates:
u1,u2,u,p,x,y,z,t,tdg,s,sdg,sx,sxdg,rx,ry,rz,r,id,h - Basic two-qubit gates:
cx,cy,cz - Extra two-qubit gates:
swap,rxx,ryy,rzz,rzx,ecr,crx,cry,crz,csx,cu1,cu,cp,ch - Three-qubit gates:
ccx,cswap
Connectivity Map
The connectivity map is given by a list of pairs of qubit IDs. Each pair in the list means that a two-qubit gate (e.g.,cx) can be performed on the pair of qubits. If the coupling map is symmetric,
then both qubits can act as control. If the coupling map is asymmetric, then the first
qubit can act only as control, and the second qubit can act only as target.
To determine whether the provided map is symmetric, set the is_symmetric_connectivity argument.
If you do not specify the connectivity map, the engine assumes full connectivity.
Example
The following example specifies a backend with 6 qubits in a 2-by-3 grid, where each qubit connects to its immediate neighbors. The backend uses four basis gates:cx, rz, sx, and x.
- SDK