Skip to main content

BasisState

Represents a quantum product state \vert s_1s_2...s_n\rangle.

Symbols

NameDescription
[]Retrieves the state value sis_i at a specified site ii.

Members

NameDescription
coefficientRetrieves the coefficient of the basis state.
get_stateRetrieves the state value sis_i at a specified site ii.
is_ket_equalChecks if two product states have the same ket configuration.
num_sitesReturns the number of sites in the basis state.
set_coefficientSets the real coefficient of the product state.
set_num_sitesChanges the number of sites on which the product state has support.
set_stateSets the local state at a specific site.