Tamil
மொழிகள்
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

RYGate

class RYGate(theta, label=None)[source]

Bases: Gate

Single-qubit rotation about the Y axis.

Can be applied to a QuantumCircuit with the ry() method.

Circuit symbol:

     ┌───────┐
q_0: ┤ Ry(ϴ) ├
     └───────┘

Matrix Representation:

\[ \begin{align}\begin{aligned}\newcommand{\th}{\frac{\theta}{2}}\\\begin{split}RY(\theta) = \exp\left(-i \th Y\right) = \begin{pmatrix} \cos\left(\th\right) & -\sin\left(\th\right) \\ \sin\left(\th\right) & \cos\left(\th\right) \end{pmatrix}\end{split}\end{aligned}\end{align} \]

Create new RY gate.

Methods Defined Here

control

Return a (multi-)controlled-RY gate.

inverse

Return inverted RY gate.

power

Raise gate to a power.

Attributes

condition_bits

Get Clbits in condition.

decompositions

Get the decompositions of the instruction from the SessionEquivalenceLibrary.

definition

Return definition in terms of other basic gates.

duration

Get the duration.

label

Return instruction label

name

Return the name.

num_clbits

Return the number of clbits.

num_qubits

Return the number of qubits.

params

return instruction params.

unit

Get the time unit of duration.