Skip to main content
IBM Quantum Platform
This page is from an old version of Qiskit SDK Go to the latest version

GRY

class qiskit.circuit.library.GRY(num_qubits, theta)

GitHub

Bases: GR

Global RY gate.

Circuit symbol:

     ┌──────────┐
q_0: ┤0         ├
     │          │
q_1: ┤1  GRY(ϴ) ├
     │          │
q_2: ┤2         ├
     └──────────┘

The global RY gate is native to atomic systems (ion traps, cold neutrals). The global RY can be applied to multiple qubits simultaneously.

In the one-qubit case, this is equivalent to an RY(theta) operation, and is thus reduced to the RYGate. The global RY gate is a direct sum of RY operations on all individual qubits.

GRY(θ)=exp(ii=1nYiθ/2)GRY(\theta) = \exp(-i \sum_{i=1}^{n} Y_i \theta/2)

Expanded Circuit:

Diagram illustrating the previously described circuit.

Create a new Global RY (GRY) gate.

Parameters

  • num_qubits (int) – number of qubits.
  • theta (float) – rotation angle about y-axis

Attributes

name

Type: str

A human-readable name for the circuit.

Example

from qiskit import QuantumCircuit
 
qc = QuantumCircuit(2, 2, name="my_circuit")
print(qc.name)
my_circuit
Was this page helpful?
Report a bug, typo, or request content on GitHub.