RLZLZGate

class RLZLZGate(gamma, label=None)[source]

Coupled ZZ-rotation of two collective spins.

The generating Hamiltonian of the RLZLZGate is

\(H = \gamma L_{z, i} + L_{z, j}\)

where \(\gamma\) is the free gate parameter and \(i\) and \(j\) index the wires the gate acts on.

Create new RLZLZ gate.

Attributes

RLZLZGate.condition_bits

Get Clbits in condition.

RLZLZGate.decompositions

Get the decompositions of the instruction from the SessionEquivalenceLibrary.

RLZLZGate.definition

Return definition in terms of other basic gates.

RLZLZGate.duration

Get the duration.

RLZLZGate.generator

The generating Hamiltonian of the LZZ gate.

RLZLZGate.label

Return instruction label

RLZLZGate.name

Return the name.

RLZLZGate.num_clbits

Return the number of clbits.

RLZLZGate.num_qubits

Return the number of qubits.

RLZLZGate.params

return instruction params.

RLZLZGate.unit

Get the time unit of duration.

Methods

RLZLZGate.add_decomposition(decomposition)

Add a decomposition of the instruction to the SessionEquivalenceLibrary.

RLZLZGate.assemble()

Assemble a QasmQobjInstruction

RLZLZGate.broadcast_arguments(qargs, cargs)

Validation and handling of the arguments and its relationship.

RLZLZGate.c_if(classical, val)

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

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

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

RLZLZGate.copy([name])

Copy of the instruction.

RLZLZGate.inverse()

Invert this instruction.

RLZLZGate.is_parameterized()

Return True .IFF.

RLZLZGate.power(exponent)

Creates a spin gate as gate^exponent.

RLZLZGate.qasm()

Return a default OpenQASM string for the instruction.

RLZLZGate.repeat(n)

Creates an instruction with gate repeated n amount of times.

RLZLZGate.reverse_ops()

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

RLZLZGate.soft_compare(other)

Soft comparison between gates.

RLZLZGate.to_matrix([spin])

Return a Numpy.array for the gate unitary matrix.

RLZLZGate.validate_parameter(parameter)

Gate parameters should be int, float, or ParameterExpression