RXX gate
The RXX gate, a two-qubit rotation about X⊗X: matrix, effect on the basis states, the rxx() call in Python and JS, and its IonQ native-gate form.
The RXX gate rotates a pair of qubits together about the axis by an angle . It acts on two qubits and takes one parameter, in radians. The two qubits are interchangeable. The Circuit panel draws an Xx(θ) box on each wire, with the angle shown as a multiple of π. At on two fresh qubits, the pair reads 00 or 11 with equal probability and never 01 or 10.
Kets such as name the basis states and rotations are described on the Bloch sphere; the qubits lesson introduces both.
Call
| Where | Call |
|---|---|
| Python | qc.rxx(θ, qubit1, qubit2) |
| JS | circuit.rxx(θ, qubit1, qubit2) |
| Qiskit class | RXXGate |
Matrix
The matrix uses the basis order , with and .
That is . It is an RZZ gate of the same angle with an H gate on both qubits before and after.
Effect on basis states
| Input | Output |
|---|---|
At the gate is fully entangling: from it produces an equal superposition of and , a Bell state up to a phase.
Inverse
The inverse of rxx(θ) is rxx(-θ).
Usage
from math import pi
from qiskit import QuantumCircuit
qc = QuantumCircuit(2, 2)
qc.rxx(pi / 2, 0, 1)
qc.measure([0, 1], [0, 1])
import { QuantumCircuit } from 'qiskit';
const circuit = QuantumCircuit(2, 2);
circuit.rxx(Math.PI / 2, 0, 1);
circuit.measure([0, 1], [0, 1]);
On a noiseless simulator every shot reads 00 or 11, in close to equal numbers.
On IonQ hardware
RXX is the abstract form of Aria's native entangler: for θ from 0 to π/2, rxx(θ) is exactly MS(0, 0, θ/2π), one native gate with no single-qubit pulses, partially entangling between 0 and π/2. IonQ's MS angle runs from 0 to a quarter turn; above π/2 the compiler rewrites the gate and does not publish the result. On Forte, where the entangler is ZZ, it is one ZZ gate with single-qubit pulses around it. See How your circuit is compiled.
Related
Stay in the loop.
Get the latest tutorials, demos, and project showcases straight to your inbox. No noise, just the good stuff.
Gates