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

Function getRandomComplex

tests/utils/random.cpp:107–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106
107qcomp getRandomComplex() {
108 qreal re = getRandomReal(-1,1);
109 qreal im = getRandomReal(-1,1);
110 return qcomp(re, im);
111}
112
113
114qcomp getRandomUnitComplex() {

Callers 6

getRandomVectorFunction · 0.70
getRandomNonSquareMatrixFunction · 0.70
getRandomDiagonalMatrixFunction · 0.70
SECTIONFunction · 0.50
SECTIONFunction · 0.50

Calls 1

getRandomRealFunction · 0.70

Tested by

no test coverage detected