Skip to main content

Module basis

Module basis 

Source
Expand description

Hilbert-space bases, sectors, symmetries, and projectors.

Structs§

BasisProjector
Sparse isometric lift from a symmetry-reduced basis to its parent basis.
BosonBasis1D
Truncated on-site boson basis.
BosonBasisBuilder
Builder for a full or fixed-particle bosonic lattice basis.
ClosureSymmetryMap
Closure-backed finite map for lattice, particle-hole, or user symmetries.
ErasedState
Runtime-selected fixed-width basis state.
GeneralBasis
LatticeSymmetryMap
Runtime-owned finite symmetry of a packed lattice state.
LocalOccupationConstraint
Site-local constraint for packed binary species.
MatrixSymmetryReducer
Finite symmetry generators carrying a common unitary matrix representation.
MatrixSymmetrySubspace
Orthonormal columns spanning one selected row of a finite-group matrix representation.
PackedPhotonBasis
Runtime-erased matter basis tensored with one truncated photon mode.
PackedTensorBasis
Owned type-erased basis for frontends that choose a built-in basis at runtime.
PhotonBasis
Matter basis tensored with one truncated photon mode, optionally at fixed total excitation number.
ReductionImage
Canonical image of one physical state under a basis reduction.
SpinBasis1D
Spin-chain basis for the full or fixed-magnetization spin space.
SpinBasisBuilder
Builder for full, conserved, or symmetry-reduced spin-chain bases.
SpinfulFermionBasis1D
Two-flavor fermion basis with all up orbitals ordered before all down orbitals.
SpinfulFermionBasisBuilder
Builder for full or number-conserving two-species fermion spaces.
SpinlessFermionBasis1D
Single-flavor fermion basis.
SpinlessFermionBasisBuilder
Builder for full, fixed-number, or momentum-reduced spinless Fock spaces.
SymmetryOrbit
Result of reducing one physical state without materializing a basis.
SymmetryReducer
Finite generators and sector phases that extend to a one-dimensional character of the generated group.
TensorBasis
Direct-product basis. Operator strings use left|right factor syntax.
UserBasis
Callback-defined constrained basis using the same assembly path as built-ins.
UserBasisBuilder
WideSpinBasis
Spin-half basis backed by a fixed-width state, including sites above 127.
WideState
Fixed-width state used by wide user and general bases.

Enums§

ExchangeStatistics
Exchange statistics used when a lattice map reorders local degrees of freedom.
PackedBasis
RepresentativeOrdering
Arbitrary finite-map reduction of any concrete parent basis.
SpinNormalization
Normalization of local spin operators.
StateStorage
WidePackedBasis
Runtime-selected wide spin basis used by persistent language-neutral models.

Traits§

Basis
Finite Hilbert-space basis and its local operator semantics.
BinaryState
Integer-like binary occupation state used by sector-native subsystem contractions.
SymmetryMap
Finite symmetry action, including any phase acquired by the state.

Functions§

basis_int_to_python_int
basis_ones
basis_zeros
bitwise_and
bitwise_leftshift
bitwise_not
bitwise_or
bitwise_rightshift
bitwise_xor
coherent_state
get_basis_type
photon_hspace_dim
Dimension of a spin-half chain plus one photon mode at fixed excitation.
python_int_to_basis_int
state_from_biguint
Convert an arbitrary-precision nonnegative integer into a fixed-width basis state without truncating high words.
state_to_biguint
Convert a fixed-width state to an arbitrary-precision integer.

Type Aliases§

BosonBasisGeneral
LocalTransitions
Compact collection of local-operator destinations.
SpinBasisGeneral
SpinfulFermionBasisGeneral
SpinlessFermionBasisGeneral
U256
U1024
U4096
U16384
UserBasisGeneral
WideSpinBasis256
WideSpinBasis1024
WideSpinBasis4096
WideSpinBasis16384
WideSpinBasisGeneral256
WideSpinBasisGeneral1024
WideSpinBasisGeneral4096
WideSpinBasisGeneral16384