From 5a3c8237702fad6cccc7ee5a20b0acf6cb263449 Mon Sep 17 00:00:00 2001 From: eliottrosenberg <61400172+eliottrosenberg@users.noreply.github.com> Date: Mon, 1 Jul 2024 15:55:07 -0400 Subject: [PATCH] Docstring with latex Co-authored-by: Noureldin --- cirq-core/cirq/experiments/readout_confusion_matrix.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cirq-core/cirq/experiments/readout_confusion_matrix.py b/cirq-core/cirq/experiments/readout_confusion_matrix.py index 45f0ba94ab8..06db8483416 100644 --- a/cirq-core/cirq/experiments/readout_confusion_matrix.py +++ b/cirq-core/cirq/experiments/readout_confusion_matrix.py @@ -315,7 +315,9 @@ def func(x): def readout_mitigation_pauli_uncorrelated( self, qubits: Sequence['cirq.Qid'], measured_bitstrings: np.ndarray ) -> tuple[float, float]: - """Uncorrelated readout error mitigation for a multi-qubit Pauli operator. This function + r"""Uncorrelated readout error mitigation for a multi-qubit Pauli operator. + + This function scalably performs readout error mitigation on an arbitrary-length Pauli operator. It is a reimplementation of https://github.com/eliottrosenberg/correlated_SPAM but specialized to the case in which readout is uncorrelated. We require that the confusion matrix is a