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

Function applyFullStateDiagMatr

quest/src/api/operations.cpp:458–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456extern "C" {
457
458void applyFullStateDiagMatr(Qureg qureg, FullStateDiagMatr matrix) {
459 validate_quregFields(qureg, __func__);
460 validate_matrixFields(matrix, __func__);
461 validate_matrixAndQuregAreCompatible(matrix, qureg, false, __func__);
462 validate_matrixIsUnitary(matrix, __func__);
463
464 applyFullStateDiagMatrPower(qureg, matrix, 1); // harmlessly re-validates
465}
466
467void applyFullStateDiagMatrPower(Qureg qureg, FullStateDiagMatr matrix, qcomp exponent) {
468 validate_quregFields(qureg, __func__);

Callers

nothing calls this directly

Calls 5

validate_quregFieldsFunction · 0.85
validate_matrixFieldsFunction · 0.85
validate_matrixIsUnitaryFunction · 0.85

Tested by

no test coverage detected