MCPcopy 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
40qindex getPow2(int a) {
41 DEMAND( a >= 0 );
42
43 return ((qindex) 1) << a;
44}
45
46
47int getBitAt(qindex num, int ind) {

Callers 15

getRandomStateVectorFunction · 0.85
getRandomDensityMatrixFunction · 0.85
getRandomUnitaryFunction · 0.85
getRandomDiagonalUnitaryFunction · 0.85
setQuregToReferenceFunction · 0.85
getMatrixFunction · 0.85
getMatrixInnerFunction · 0.85
REQUIRE_AGREEFunction · 0.85
getSwapMatrixFunction · 0.85
getSwapAndUnswapMatricesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected