Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuEST-Kit/QuEST
/ getRandomQVector
Function
getRandomQVector
tests/deprecated/test_utilities.cpp:549–555 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
547
}
548
549
QVector getRandomQVector(int dim) {
550
QVector vec = QVector(dim);
551
for (int i=0; i<dim; i++)
552
vec[i] = getRandomComplex();
553
554
return vec;
555
}
556
557
QVector getNormalised(QVector vec) {
558
Callers
4
test_calculations.cpp
File · 0.85
test_state_initialisations.cpp
File · 0.85
getRandomStateVector
Function · 0.85
test_operators.cpp
File · 0.85
Calls
1
getRandomComplex
Function · 0.70
Tested by
no test coverage detected