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

GR

class qiskit.circuit.library.GR(num_qubits, theta, phi)

GitHub

Bases: QuantumCircuit

Global R gate.

Circuit symbol:

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

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

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

GR(θ,ϕ)=exp(ii=1n(cos(ϕ)Xi+sin(ϕ)Yi)θ/2)GR(\theta, \phi) = \exp(-i \sum_{i=1}^{n} (\cos(\phi)X_i + \sin(\phi)Y_i) \theta/2)

Expanded Circuit:

Diagram illustrating the previously described circuit.

Create a new Global R (GR) gate.

Parameters

  • num_qubits (int) – number of qubits.
  • theta (float) – rotation angle about axis determined by phi
  • phi (float) – angle of rotation axis in xy-plane

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.