StateVector
Base class for all state vector representations.
Factories
state_vector(as_complex info, const Map options) -> StateVector
State vector factory.
Provides a way to construct a state vector by providing a StateInfo object and a map of options.
Parameters
- info: Information about the state vector to be created.
- options: Options for the state vector creation.
Example
var options = as_fermion | as_number | as_complex
var state = state_vector(options, ["num_sites" : 10, "number" : 5])
state_vector(as_real info, const Map options) -> StateVector
State vector factory.
Provides a way to construct a state vector by providing a StateInfo object and a map of options.
Parameters
- info: Information about the state vector to be created.
- options: Options for the state vector creation.
Example
var options = as_fermion | as_number | as_complex
var state = state_vector(options, ["num_sites" : 10, "number" : 5])
state_vector(const StateInfo info, const Map options) -> StateVector
State vector factory.
Provides a way to construct a state vector by providing a StateInfo object and a map of options.
Parameters
- info: Information about the state vector to be created.
- options: Options for the state vector creation.
Example
var options = as_fermion | as_number | as_complex
var state = state_vector(options, ["num_sites" : 10, "number" : 5])