Creating specific States
Sources create_state.hpp, create_state.cpp
product_state
Creates a filled product state.
Parameters
| Name | Description | |
|---|---|---|
| block | block on which the state is defined | |
| local_states | local configurations of the product state | |
| real | flag whether real state is created |
random_state
Create a filled random state with normal \(\mathcal{N}(0, 1)\) distributed coefficients.
Parameters
| Name | Description | |
|---|---|---|
| block | block on which the state is defined | |
| real | flag whether real state is created | |
| seed | random seed determining the precise random numbers | |
| normalized | flag whether the state is normalized |
zero_state
Create a filled state with all zero entries.
Parameters
| Name | Description | |
|---|---|---|
| block | block on which the state is defined | |
| real | flag whether real state is created | |
| ncols | number of columns in the state |
zero
Set all coefficients of a given state to zero.