estimate_assignment_probs¶

pyquil.noise.estimate_assignment_probs(q, trials, cxn, p0=None)[source]

Estimate the readout assignment probabilities for a given qubit q. The returned matrix is of the form:

[[p00 p01]
[p10 p11]]

Parameters: q (int) – The index of the qubit. trials (int) – The number of samples for each state preparation. cxn (Union[QVMConnection,QPUConnection]) – The quantum abstract machine to sample from. p0 (Program) – A header program to prepend to the state preparation programs. The assignment probability matrix np.array