RYGate¶
- class RYGate(theta, label=None)[source]¶
Single-qubit rotation about the Y axis.
Circuit symbol:
┌───────┐ q_0: ┤ Ry(ϴ) ├ └───────┘
Matrix Representation:
\[ \begin{align}\begin{aligned}\newcommand{\th}{\frac{\theta}{2}}\\\begin{split}RY(\theta) = exp(-i \th Y) = \begin{pmatrix} \cos{\th} & -\sin{\th} \\ \sin{\th} & \cos{\th} \end{pmatrix}\end{split}\end{aligned}\end{align} \]Create new RY gate.
Attributes
Get the decompositions of the instruction from the SessionEquivalenceLibrary.
Return definition in terms of other basic gates.
Return gate label
return instruction params.
Methods
RYGate.add_decomposition
(decomposition)Add a decomposition of the instruction to the SessionEquivalenceLibrary.
Assemble a QasmQobjInstruction
RYGate.broadcast_arguments
(qargs, cargs)Validation and handling of the arguments and its relationship.
RYGate.c_if
(classical, val)Add classical condition on register classical and value val.
RYGate.control
([num_ctrl_qubits, label, …])Return a (mutli-)controlled-RY gate.
RYGate.copy
([name])Copy of the instruction.
Return inverted RY gate.
Return True .IFF.
For a composite instruction, reverse the order of sub-gates.
RYGate.power
(exponent)Creates a unitary gate as gate^exponent.
Return a default OpenQASM string for the instruction.
Creates an instruction with gate repeated n amount of times.
Return a numpy.array for the RY gate.