Basis module (quspin.basis
)
Basis classes for quantum many-body systems.
The following table shows the available operator strings for the different bases (sps is the onsite Hilbert space dimension):
Notes:
The default operators for spin-1/2 are the Pauli matrices, NOT the spin operators. To change this, see the argument pauli of the spin_basis_* classes.
Higher spins can only be defined using the spin operators, and do NOT support the operator strings “x” and “y”.
The fermion operator strings “x” and “y” are present only in the general basis fermion classes, and correspond to real fermions, i.e. Majorana operators (note the sign difference between “y” and the \(\sigma^y\) Pauli matrix, which is convention).
The variable sps in the definition of the bosonic “z” operator stands for “states per site”, i.e., the local on-site Hilbert space dimension.
one-dimensional symmetries
|
Constructs basis for spin operators in a specified 1-d symmetry sector. |
|
Constructs basis for boson operators in a specified 1-d symmetry sector. |
|
Constructs basis for spinless fermionic operators in a specified 1-d symmetry sector. |
|
Constructs basis for spinful fermionic operators in a specified 1-d symmetry sector. |
general lattice symmetries
|
Constructs basis for spin operators for USER-DEFINED symmetries. |
|
Constructs basis for boson operators for USER-DEFINED symmetries. |
|
Constructs basis for spinless fermion operators for USER-DEFINED symmetries. |
|
Constructs basis for spinful fermion operators for USER-DEFINED symmetries. |
user basis
|
Constructs basis for USER-DEFINED functionality of a basis object. |
combining basis classes
|
Constructs basis in tensor product Hilbert space. |
|
Constructs basis in photon-particle Hilbert space. |
functions
|
Creates a harmonic oscillator (HO) coherent state. |
|
Calculates the dimension of the total spin-photon Hilbert space. |
large integer support for general basis classes
To construct *_basis_general classes with more than 64 lattice sites, QuSpin uses custom unsigned integer types for the integer representation of many-body states.
a) custom large integer data types supported in general basis
DType class corresponding to the scalar type and dtype of the same name. |
|
DType class corresponding to the scalar type and dtype of the same name. |
|
DType class corresponding to the scalar type and dtype of the same name. |
|
DType class corresponding to the scalar type and dtype of the same name. |
b) array initialization routines
|
Allocates initialized array using the QuSpin basis integers. |
|
Allocates initialized array using the QuSpin basis integers. |
c) utilities to use large integers
|
Returns minimum dtype to represent manybody state. |
|
Converts python integer to QuSpin basis type. |
|
Converts QuSpin basis type integer to a python integer. |
|
Bitwise NOT operation ~x. |
|
Bitwise AND operation x1 & x2. |
|
Bitwise OR operation x1 | x2. |
|
Bitwise XOR operation x1 ^ x2. |
|
Bitwise LEFT SHIFT operation x1 << x2. |
|
Bitwise RIGHT SHIFT operation x1 >> x2. |