Loading [MathJax]/jax/output/HTML-CSS/jax.js

qml.fermi.FermiC

class FermiC(orbital)[source]

Bases: pennylane.fermi.fermionic.FermiWord

The fermionic creation operator a

For instance, the operator qml.FermiC(2) denotes a2. This operator applied to |0000 gives |0010.

Parameters

orbital (int) – the non-negative integer indicating the orbital the operator acts on.

Note

While the FermiC class represents a mathematical operator, it is not a PennyLane qubit Operator.

See also

FermiA

Example

To construct the operator a0:

>>> w = FermiC(0)
>>> print(w)
a⁺(0)

This can be combined with the annihilation operator FermiA. For example, a0a1a2a3 can be constructed as:

>>> w = qml.FermiC(0) * qml.FermiA(1) * qml.FermiC(2) * qml.FermiA(3)
>>> print(w)
a⁺(0) a(1) a⁺(2) a(3)

adjoint()

Return the adjoint of FermiC.

adjoint()[source]

Return the adjoint of FermiC.