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

Function validate_twoQubitDepashingProb

quest/src/core/validation.cpp:3928–3936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3926}
3927
3928void validate_twoQubitDepashingProb(qreal prob, const char* caller) {
3929
3930 /// @todo report 'prob' once validation reporting can handle floats
3931
3932 validate_probability(prob, caller);
3933 assertThat(
3934 prob <= util_getMaxProbOfTwoQubitDephasing(),
3935 report::TWO_QUBIT_DEPHASING_PROB_EXCEEDS_MAXIMAL_MIXING, caller);
3936}
3937
3938void validate_oneQubitDepolarisingProb(qreal prob, const char* caller) {
3939

Callers 1

mixTwoQubitDephasingFunction · 0.85

Calls 3

validate_probabilityFunction · 0.85
assertThatFunction · 0.85

Tested by

no test coverage detected