RLYGate¶
- class RLYGate(omega, label=None)[source]¶
Rotation of the collective spin of a cold atomic Bose-Einstein condensate around the y-axis.
The generating Hamiltonian of the LY gate is
\(H = \omega L_y\)
where \(\omega\) is the free gate parameter
Circuit symbol:
┌────────────┐ q_0: ┤ RLY(omega) ├ └────────────┘
Create new RLY gate.
Attributes
Get Clbits in condition.
Get the decompositions of the instruction from the SessionEquivalenceLibrary.
Return definition in terms of other basic gates.
Get the duration.
The generating Hamiltonian of the LY gate.
Return instruction label
Return the name.
Return the number of clbits.
Return the number of qubits.
return instruction params.
Get the time unit of duration.
Methods
RLYGate.add_decomposition
(decomposition)Add a decomposition of the instruction to the SessionEquivalenceLibrary.
Assemble a QasmQobjInstruction
RLYGate.broadcast_arguments
(qargs, cargs)Validation and handling of the arguments and its relationship.
RLYGate.c_if
(classical, val)Set a classical equality condition on this instruction between the register or cbit
classical
and valueval
.RLYGate.control
([num_ctrl_qubits, label, ...])Overwrite control method which is supposed to return a controlled version of the gate.
RLYGate.copy
([name])Copy of the instruction.
Invert this instruction.
Return True .IFF.
RLYGate.power
(exponent)Creates a spin gate as gate^exponent.
Return a default OpenQASM string for the instruction.
Creates an instruction with gate repeated n amount of times.
For a composite instruction, reverse the order of sub-instructions.
RLYGate.soft_compare
(other)Soft comparison between gates.
RLYGate.to_matrix
([spin])Return a Numpy.array for the gate unitary matrix.
RLYGate.validate_parameter
(parameter)Gate parameters should be int, float, or ParameterExpression