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

Function getZeroMatrix

tests/utils/qmatrix.cpp:18–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 */
17
18qmatrix getZeroMatrix(size_t dim) {
19 DEMAND( dim >= 1 );
20
21 return qmatrix(dim, qvector(dim, 0));
22}
23
24qmatrix getConstantMatrix(size_t dim, qcomp elem) {
25 DEMAND( dim >= 1 );

Callers 15

getRandomDiagonalMatrixFunction · 0.70
getRandomDensityMatrixFunction · 0.70
getRandomUnitaryFunction · 0.70
getRandomDiagonalUnitaryFunction · 0.70
getMatrixFunction · 0.70
getMatrixInnerFunction · 0.70
getIdentityMatrixFunction · 0.70
getDiagonalMatrixFunction · 0.70
getSwapMatrixFunction · 0.70
applyReferenceOperatorFunction · 0.70
getRefDensmatrFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected