OATGate

class OATGate(chi, delta, omega, label=None)[source]

Evolution of a coherent spin under the one-axis-twisting Hamiltonian.

The generating Hamiltonian of the OATgate is

\(H = \chi L_z^2 + \Delta L_z + \Omega L_x\)

where \(\chi\), \(\Delta\) and \(\Omega\) are the free gate parameters.

Create new one-axis-twisting rotation gate.

Attributes

OATGate.condition_bits

Get Clbits in condition.

OATGate.decompositions

Get the decompositions of the instruction from the SessionEquivalenceLibrary.

OATGate.definition

Return definition in terms of other basic gates.

OATGate.duration

Get the duration.

OATGate.generator

The generating Hamiltonian of the OAT gate.

OATGate.label

Return instruction label

OATGate.name

Return the name.

OATGate.num_clbits

Return the number of clbits.

OATGate.num_qubits

Return the number of qubits.

OATGate.params

return instruction params.

OATGate.unit

Get the time unit of duration.

Methods

OATGate.add_decomposition(decomposition)

Add a decomposition of the instruction to the SessionEquivalenceLibrary.

OATGate.assemble()

Assemble a QasmQobjInstruction

OATGate.broadcast_arguments(qargs, cargs)

Validation and handling of the arguments and its relationship.

OATGate.c_if(classical, val)

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

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

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

OATGate.copy([name])

Copy of the instruction.

OATGate.inverse()

Invert this instruction.

OATGate.is_parameterized()

Return True .IFF.

OATGate.power(exponent)

Creates a spin gate as gate^exponent.

OATGate.qasm()

Return a default OpenQASM string for the instruction.

OATGate.repeat(n)

Creates an instruction with gate repeated n amount of times.

OATGate.reverse_ops()

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

OATGate.soft_compare(other)

Soft comparison between gates.

OATGate.to_matrix([spin])

Return a Numpy.array for the gate unitary matrix.

OATGate.validate_parameter(parameter)

Gate parameters should be int, float, or ParameterExpression