FRXGate

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

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

The generating Hamiltonian of the FermionRx gate is

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

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

Initialize a FermionRX gate

Parameters:
  • phi (float) – angle of the rotation

  • label – optional

Attributes

FRXGate.condition_bits

Get Clbits in condition.

FRXGate.decompositions

Get the decompositions of the instruction from the SessionEquivalenceLibrary.

FRXGate.definition

Return definition in terms of other basic gates.

FRXGate.duration

Get the duration.

FRXGate.generator

The generating Hamiltonian of the FermionRX gate.

FRXGate.label

Return instruction label

FRXGate.name

Return the name.

FRXGate.num_clbits

Return the number of clbits.

FRXGate.num_qubits

Return the number of qubits.

FRXGate.params

return instruction params.

FRXGate.unit

Get the time unit of duration.

Methods

FRXGate.add_decomposition(decomposition)

Add a decomposition of the instruction to the SessionEquivalenceLibrary.

FRXGate.assemble()

Assemble a QasmQobjInstruction

FRXGate.broadcast_arguments(qargs, cargs)

Validation and handling of the arguments and its relationship.

FRXGate.c_if(classical, val)

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

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

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

FRXGate.copy([name])

Copy of the instruction.

FRXGate.inverse()

Get inverse gate by inverting the sign of the rotation angle

FRXGate.is_parameterized()

Return True .IFF.

FRXGate.operator_to_mat(generator, num_species)

Compute the matrix representation of the fermion operator.

FRXGate.power(exponent)

Creates a fermionic gate as gate^exponent

FRXGate.qasm()

Return a default OpenQASM string for the instruction.

FRXGate.repeat(n)

Creates an instruction with gate repeated n amount of times.

FRXGate.reverse_ops()

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

FRXGate.soft_compare(other)

Soft comparison between gates.

FRXGate.to_matrix([num_species, basis])

Return a Numpy.array for the gate unitary matrix.

FRXGate.validate_parameter(parameter)

Gate parameters should be int, float, or ParameterExpression