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

Function getDiagMatr1

quest/src/api/matrices.cpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65DiagMatr1 getDiagMatr1(vector<qcomp> in) {
66 validate_matrixNumNewElems(1, in, __func__);
67
68 return getDiagMatr1(in.data());
69}
70
71DiagMatr2 getDiagMatr2(vector<qcomp> in) {
72 validate_matrixNumNewElems(2, in, __func__);

Callers 6

applyMultiQubitPhaseFlipFunction · 0.70
util_getPauliZFunction · 0.50
util_getExpPauliZFunction · 0.50

Calls 1

Tested by

no test coverage detected