FRZGate

class FRZGate(phi, label=None)[source]

Z-rotation between the spin-up and spin-down state at one tweezer site.

The generating Hamiltonian of the FermionRz gate is

\(H = i \phi (f^\dagger_{x,\downarrow} f_{x,\uparrow}-f^\dagger_{x,\uparrow} f_{x,\downarrow})\)

where \(x\) is the index of the mode and \(\phi\) is the free gate parameter.

Initialize a FermionRZ gate :type phi: :param phi: angle of the rotation :type label: :param label: optional

Attributes

FRZGate.condition_bits

Get Clbits in condition.

FRZGate.decompositions

Get the decompositions of the instruction from the SessionEquivalenceLibrary.

FRZGate.definition

Return definition in terms of other basic gates.

FRZGate.duration

Get the duration.

FRZGate.generator

The generating Hamiltonian of the FermionRZ gate.

FRZGate.label

Return instruction label

FRZGate.name

Return the name.

FRZGate.num_clbits

Return the number of clbits.

FRZGate.num_qubits

Return the number of qubits.

FRZGate.params

return instruction params.

FRZGate.unit

Get the time unit of duration.

Methods

FRZGate.add_decomposition(decomposition)

Add a decomposition of the instruction to the SessionEquivalenceLibrary.

FRZGate.assemble()

Assemble a QasmQobjInstruction

FRZGate.broadcast_arguments(qargs, cargs)

Validation and handling of the arguments and its relationship.

FRZGate.c_if(classical, val)

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

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

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

FRZGate.copy([name])

Copy of the instruction.

FRZGate.inverse()

Get inverse gate by inverting the sign of the rotation angle

FRZGate.is_parameterized()

Return True .IFF.

FRZGate.operator_to_mat(generator, num_species)

Compute the matrix representation of the fermion operator.

FRZGate.power(exponent)

Creates a fermionic gate as gate^exponent

FRZGate.qasm()

Return a default OpenQASM string for the instruction.

FRZGate.repeat(n)

Creates an instruction with gate repeated n amount of times.

FRZGate.reverse_ops()

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

FRZGate.soft_compare(other)

Soft comparison between gates.

FRZGate.to_matrix([num_species, basis])

Return a Numpy.array for the gate unitary matrix.

FRZGate.validate_parameter(parameter)

Gate parameters should be int, float, or ParameterExpression