RLZGate

class RLZGate(delta, label=None)[source]

Rotation of the collective spin of a cold atomic Bose-Einstein condensate around the z-axis.

The generating Hamiltonian of the LZ gate is

\(H = \delta L_z\)

where \(\delta\) is the free gate parameter

Circuit symbol:

     ┌────────────┐
q_0: ┤ RLZ(delta) ├
     └────────────┘

Create new RLZ gate.

Attributes

RLZGate.condition_bits

Get Clbits in condition.

RLZGate.decompositions

Get the decompositions of the instruction from the SessionEquivalenceLibrary.

RLZGate.definition

Return definition in terms of other basic gates.

RLZGate.duration

Get the duration.

RLZGate.generator

The generating Hamiltonian of the LZ gate.

RLZGate.label

Return instruction label

RLZGate.name

Return the name.

RLZGate.num_clbits

Return the number of clbits.

RLZGate.num_qubits

Return the number of qubits.

RLZGate.params

return instruction params.

RLZGate.unit

Get the time unit of duration.

Methods

RLZGate.add_decomposition(decomposition)

Add a decomposition of the instruction to the SessionEquivalenceLibrary.

RLZGate.assemble()

Assemble a QasmQobjInstruction

RLZGate.broadcast_arguments(qargs, cargs)

Validation and handling of the arguments and its relationship.

RLZGate.c_if(classical, val)

Set a classical equality condition on this instruction between the register or cbit classical and value val.

RLZGate.control([num_ctrl_qubits, label, ...])

Overwrite control method which is supposed to return a controlled version of the gate.

RLZGate.copy([name])

Copy of the instruction.

RLZGate.inverse()

Invert this instruction.

RLZGate.is_parameterized()

Return True .IFF.

RLZGate.power(exponent)

Creates a spin gate as gate^exponent.

RLZGate.qasm()

Return a default OpenQASM string for the instruction.

RLZGate.repeat(n)

Creates an instruction with gate repeated n amount of times.

RLZGate.reverse_ops()

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

RLZGate.soft_compare(other)

Soft comparison between gates.

RLZGate.to_matrix([spin])

Return a Numpy.array for the gate unitary matrix.

RLZGate.validate_parameter(parameter)

Gate parameters should be int, float, or ParameterExpression