Asserts that measuring the given qubits in the given Pauli basis will have the given result with the given probability, within some tolerance.
operation AssertProb (bases : Pauli, qubits : Qubit, result : Result, prob : Double, msg : String, tol : Double) : Unit
A measurement effect to assert the probability of, expressed as a multi-qubit Pauli operator.
A register on which to make the assertion.
An expected result of
The probability with which the given result is expected.
A message to be reported if the assertion fails.
Note that the Adjoint and Controlled versions of this operation will not check the condition.