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

Function applyReferenceOperator

tests/utils/evolve.cpp:158–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156// overloads with no targs (given full operator)
157
158void applyReferenceOperator(qvector& state, qmatrix matrix) {
159 DEMAND( state.size() == matrix.size() );
160
161 state = matrix * state;
162}
163void applyReferenceOperator(qmatrix& state, qmatrix matrix) {
164 DEMAND( state.size() == matrix.size() );
165

Callers 4

testOperationCorrectnessFunction · 0.85
SECTIONFunction · 0.85
DYNAMIC_SECTIONFunction · 0.85

Calls 4

getFullStateOperatorFunction · 0.85
getLog2Function · 0.85
getConjugateTransposeFunction · 0.70
getZeroMatrixFunction · 0.70

Tested by

no test coverage detected