Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
107
qcomp getRandomComplex() {
108
qreal re = getRandomReal(-1,1);
109
qreal im = getRandomReal(-1,1);
110
return qcomp(re, im);
111
}
112
113
114
qcomp getRandomUnitComplex() {
Callers
6
getRandomVector
Function · 0.70
getRandomNonSquareMatrix
Function · 0.70
getRandomDiagonalMatrix
Function · 0.70
createRandomNonHermitianPauliStrSum
Function · 0.70
SECTION
Function · 0.50
SECTION
Function · 0.50
Calls
1
getRandomReal
Function · 0.70
Tested by
no test coverage detected