Representation

HilbertSpaceRepresentation

A HilbertSpaceRepresentation is a representation of the Hilbert space, with the list of basis vectors in a ascending order of their binary representations, and a lookup table for them. The HilbertSpaceRepresentation can be constructed using represent_array which uses FrozenSortedArrayIndex for the lookup table, or represent_dict which uses Dict.

You can also explicitly supply a list of basis vectors

OperatorRepresentation

An OperatorRepresentation is a representation of an operator in the given Hilbert space representation.

QuantumHamiltonian.representMethod
represent(hilbert_space_representation, operator)

Create an OperatorRepresentation of the operator in the hilbert_space_representation.

source