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

Function validate_oneQubitDepashingProb

quest/src/core/validation.cpp:3918–3926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3916}
3917
3918void validate_oneQubitDepashingProb(qreal prob, const char* caller) {
3919
3920 /// @todo report 'prob' once validation reporting can handle floats
3921
3922 validate_probability(prob, caller);
3923 assertThat(
3924 prob <= util_getMaxProbOfOneQubitDephasing(),
3925 report::ONE_QUBIT_DEPHASING_PROB_EXCEEDS_MAXIMAL_MIXING, caller);
3926}
3927
3928void validate_twoQubitDepashingProb(qreal prob, const char* caller) {
3929

Callers 1

mixDephasingFunction · 0.85

Calls 3

validate_probabilityFunction · 0.85
assertThatFunction · 0.85

Tested by

no test coverage detected