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

RYGate.decompositions

Get the decompositions of the instruction from the SessionEquivalenceLibrary.

RYGate.definition

Return definition in terms of other basic gates.

RYGate.label

Return gate label

RYGate.params

return instruction params.

Methods

RYGate.add_decomposition(decomposition)

Add a decomposition of the instruction to the SessionEquivalenceLibrary.

RYGate.assemble()

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.

RYGate.inverse()

Return inverted RY gate.

RYGate.is_parameterized()

Return True .IFF.

RYGate.mirror()

For a composite instruction, reverse the order of sub-gates.

RYGate.power(exponent)

Creates a unitary gate as gate^exponent.

RYGate.qasm()

Return a default OpenQASM string for the instruction.

RYGate.repeat(n)

Creates an instruction with gate repeated n amount of times.

RYGate.to_matrix()

Return a numpy.array for the RY gate.