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

Function assert_utilsGivenNonZeroEpsilon

quest/src/core/errors.cpp:809–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809void assert_utilsGivenNonZeroEpsilon(qreal eps) {
810
811 if (eps == 0)
812 raiseInternalError("A utility function (e.g. isUnitary) received an epsilon of zero, which should have precluded it being called.");
813}
814
815
816

Callers 4

getUnitarityFunction · 0.85
getHermiticityFunction · 0.85
getWhetherNonZeroFunction · 0.85
util_isCPTPFunction · 0.85

Calls 1

raiseInternalErrorFunction · 0.85

Tested by

no test coverage detected