fermifab.util

Functions

comprise_config(orbs1, orbs2, N1, N2) Comprise configurations.
crand(*args)
eig(op) Eigenvalues and eigenstates of Fermi operators
kron(x, y) Compute the Kronecker product of two Fermi operators.
matrix_power(op, n) Compute the n-th matrix power of a Fermi operator.
norm(x[, ord]) Compute the norm of a FermiState or FermiOp.
trace(op) Compute the trace of a FermiOp.
trace_prod(A, B) Calculate trace(A*B) efficiently.
fermifab.util.norm(x, ord=None)[source]

Compute the norm of a FermiState or FermiOp.

fermifab.util.kron(x, y)[source]

Compute the Kronecker product of two Fermi operators.

fermifab.util.trace(op)[source]

Compute the trace of a FermiOp.

fermifab.util.trace_prod(A, B)[source]

Calculate trace(A*B) efficiently.

fermifab.util.matrix_power(op, n)[source]

Compute the n-th matrix power of a Fermi operator.

fermifab.util.eig(op)[source]

Eigenvalues and eigenstates of Fermi operators

fermifab.util.comprise_config(orbs1, orbs2, N1, N2)[source]

Comprise configurations.