| 456 | extern "C" { |
| 457 | |
| 458 | void 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 | |
| 467 | void applyFullStateDiagMatrPower(Qureg qureg, FullStateDiagMatr matrix, qcomp exponent) { |
| 468 | validate_quregFields(qureg, __func__); |
nothing calls this directly
no test coverage detected