MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / getRandomStateVector

Function getRandomStateVector

tests/utils/random.cpp:296–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294
295
296qvector getRandomStateVector(int numQb) {
297
298 return getNormalised(getRandomVector(getPow2(numQb)));
299}
300
301
302vector<qvector> getRandomOrthonormalStateVectors(int numQb, int numStates) {

Callers 3

getRandomDensityMatrixFunction · 0.70
setToRandomStateFunction · 0.70

Calls 3

getRandomVectorFunction · 0.85
getPow2Function · 0.85
getNormalisedFunction · 0.70

Tested by

no test coverage detected