Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QuEST-Kit/QuEST
/ getPow2
Function
getPow2
tests/utils/linalg.cpp:40–44 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
38
39
40
qindex getPow2(int a) {
41
DEMAND( a >= 0 );
42
43
return ((qindex) 1) << a;
44
}
45
46
47
int getBitAt(qindex num, int ind) {
Callers
15
getRandomStateVector
Function · 0.85
getRandomOrthonormalStateVectors
Function · 0.85
getRandomDensityMatrix
Function · 0.85
getRandomUnitary
Function · 0.85
getRandomDiagonalUnitary
Function · 0.85
getRandomDiagonalHermitian
Function · 0.85
setQuregToReference
Function · 0.85
getMatrix
Function · 0.85
getMatrixInner
Function · 0.85
REQUIRE_AGREE
Function · 0.85
getSwapMatrix
Function · 0.85
getSwapAndUnswapMatrices
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected