Readout Functions
A single site can be access with the operator[]:
IntType local_state = state[100];
The code provides various functions with different containers, e.g., single primitive integer, std::vector
, or State class, to access a specific range from start to end.
A detailed documentation of these functions can be found in here.
-
const IntType danceq::internal::State::operator[](uint64_t site_index) const
Reads the local state at a given site.
Returns state at site site_index, \(\vert \sigma_{\textbf{site_index}} \rangle\).
IntType local_state = state[site_index];
Warning
Only the return option of the operator [] is defined. Use the function set_state(…) to modify a specific site.
- Parameters:
site_index – Site to read
- Returns:
Local site
-
State<MaxSites, Q, IntType, Nbits, NInt> danceq::internal::State::get_range(uint64_t start = 0, uint64_t end = MaxSites) const
Returns a truncated State within a range.
Returns an instance of State truncated to start to end-1.
- Parameters:
start – Start of range
end – End of range
- Returns:
Truncated state