Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
296
qvector getRandomStateVector(int numQb) {
297
298
return getNormalised(getRandomVector(getPow2(numQb)));
299
}
300
301
302
vector<qvector> getRandomOrthonormalStateVectors(int numQb, int numStates) {
Callers
3
getRandomDensityMatrix
Function · 0.70
getRandomPureDensityMatrix
Function · 0.70
setToRandomState
Function · 0.70
Calls
3
getRandomVector
Function · 0.85
getPow2
Function · 0.85
getNormalised
Function · 0.70
Tested by
no test coverage detected