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 a†2. 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 qubitOperator
.See also
Example
To construct the operator a†0:
>>> w = FermiC(0) >>> print(w) a⁺(0)
This can be combined with the annihilation operator
FermiA
. For example, a†0a1a†2a3 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)
Methods