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

Function getRandomUnitComplex

tests/utils/random.cpp:114–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112
113
114qcomp getRandomUnitComplex() {
115 return std::exp(1_i * getRandomPhase());
116}
117
118
119

Callers 1

getRandomDiagonalUnitaryFunction · 0.85

Calls 1

getRandomPhaseFunction · 0.85

Tested by

no test coverage detected