Operators#

Reference documentation for all operator classes and factory functions in netket_foundation.operator.

Operator classes#

The classes below are operators that specifically work with NetKet foundation. The netket_foundation.operator.ParametrizedOperator is the general operator used with foundation quantum states, while PauliStringsJax and FermionOperator are largely equivalent to their NetKet’s counterparts but have a few minor modifications necessary to build those operators within jit contexts. We will, over time, upstream those changes to NetKet.

netket_foundation.operator.ParametrizedOperator

Operator wrapper that evaluates a physical operator from parameters carried in the sample.

netket_foundation.operator.PauliStringsJax

Jax-compatible version of netket.operator.PauliStringsNumba.

netket_foundation.operator.FermionOperator2nd

A fermionic operator in \(2^{nd}\) quantization, using Numba for indexing.

Operator factories#

Those commands below can be used to compose Hamiltonians that work with Foundation quantum states. They behave the same as those within NetKet, but return Foundation-specific classes.

netket_foundation.operator.sigmax

Pauli X operator acting on site i of the Hilbert space hi.

netket_foundation.operator.sigmay

Pauli Y operator acting on site i of the Hilbert space hi.

netket_foundation.operator.sigmaz

Pauli Z operator acting on site i of the Hilbert space hi.

netket_foundation.operator.create

Builds the fermion creation operator \(\hat{a}^\dagger\) acting on the site-th of the Hilbert space hilbert.

netket_foundation.operator.destroy

Builds the fermion destruction operator \(\hat{a}\) acting on the site-th of the Hilbert space hilbert.

netket_foundation.operator.number

Builds the number operator \(\hat{a}^\dagger\hat{a}\) acting on the site-th of the Hilbert space hilbert.