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

Function toComplexMatrixN

tests/deprecated/test_utilities.cpp:1193–1197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1191 dest[i][j] = src[i][j];
1192
1193void toComplexMatrixN(QMatrix qm, ComplexMatrixN cm) {
1194 DEMAND( qm.size() == (1u<<cm.numQubits) );
1195 macro_copyComplexMatrix(cm.cpuElems, qm, qm.size());
1196 syncCompMatr(cm);
1197}
1198
1199QMatrix toQMatrix(CompMatr1 src) {
1200 QMatrix dest = getZeroMatrix(2);

Callers 3

test_unitaries.cppFile · 0.85
test_operators.cppFile · 0.85

Calls 1

syncCompMatrFunction · 0.85

Tested by

no test coverage detected