![]() |
The Quantum Exact Simulation Toolkit v4.1.0
|
Functions for seeding QuEST's random generators. More...
Functions | |
int | getNumSeeds () |
std::vector< unsigned > | getSeeds () |
void | getSeeds (unsigned *seeds) |
void | setSeeds (unsigned *seeds, int numSeeds) |
void | setSeedsToDefault () |
Functions for seeding QuEST's random generators.
Re-seeding with identical seeds will determine all of QuEST's subsequent random outputs (such as measurement and random state preparation), and can be done at any stage of execution. When seeding is not explicitly performed, QuEST will attempt to use a cryptographically secure pseudorandom number generator (CSPRNG) if locally available, else fall back to a standard PRNG, via using the standard C++ random_device
class.
int getNumSeeds | ( | ) |
Definition at line 52 of file debug.cpp.
Referenced by getSeeds().
std::vector< unsigned > getSeeds | ( | ) |
Definition at line 213 of file debug.cpp.
Referenced by getSeeds(), and setRandomTestStateSeeds().
void getSeeds | ( | unsigned * | seeds | ) |
void setSeeds | ( | unsigned * | seeds, |
int | numSeeds ) |
Definition at line 37 of file debug.cpp.
Referenced by setRandomTestStateSeeds().