Skip to main content
IBM Quantum Platform

GRX

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

GitHub

Bases: GR

Global RX gate.

Circuit symbol:

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

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

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

GRX(θ)=exp(ii=1nXiθ/2)GRX(\theta) = \exp(-i \sum_{i=1}^{n} X_i \theta/2)

Expanded Circuit:

Diagram illustrating the previously described circuit.

Create a new Global RX (GRX) gate.

Parameters

  • num_qubits (int) – number of qubits.
  • theta (float) – rotation angle about x-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.