Skip to main content
IBM Quantum Platform
Esta página pertence a uma versão antiga do Qiskit SDK Ir para a versão mais recente

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

Tipo: 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
Esta página foi útil?
Relate um bug, erro de digitação ou solicite conteúdo no GitHub.