Skip to main content
IBM Quantum Platform

GRZ

class qiskit.circuit.library.GRZ(num_qubits, phi)

GitHub

Bases: QuantumCircuit

Global RZ gate.

Circuit symbol:

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

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

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

GRZ(ϕ)=exp(ii=1nZiϕ)GRZ(\phi) = \exp(-i \sum_{i=1}^{n} Z_i \phi)

Expanded Circuit:

Diagram illustrating the previously described circuit.

Create a new Global RZ (GRZ) gate.

Parameters

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