RYY gate
The RYY gate, a two-qubit rotation about Y⊗Y: matrix, effect on the basis states, the ryy() call in Python and JS, and its IonQ native-gate form.
The RYY 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 a Yy(θ) 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.ryy(θ, qubit1, qubit2) |
| JS | circuit.ryy(θ, qubit1, qubit2) |
| Qiskit class | RYYGate |
Matrix
The matrix uses the basis order , with and .
That is . It differs from RXX only in the sign of the outer entries.
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 ryy(θ) is ryy(-θ).
Usage
from math import pi
from qiskit import QuantumCircuit
qc = QuantumCircuit(2, 2)
qc.ryy(pi / 2, 0, 1)
qc.measure([0, 1], [0, 1])
import { QuantumCircuit } from 'qiskit';
const circuit = QuantumCircuit(2, 2);
circuit.ryy(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
RYY is the abstract form of Aria's native entangler with both phases a quarter turn round: for θ from 0 to π/2, ryy(θ) is exactly MS(0.25, 0.25, θ/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 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