From f2173e8ad34df9281fb9b163366436029a7a7d3b Mon Sep 17 00:00:00 2001 From: Luciano Bello Date: Tue, 24 May 2022 21:03:52 +0200 Subject: [PATCH 1/2] amp alignment in a single line results in "Misplaced &" --- qiskit/quantum_info/operators/symplectic/pauli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit/quantum_info/operators/symplectic/pauli.py b/qiskit/quantum_info/operators/symplectic/pauli.py index 0c7f7e548444..7c966fa29295 100644 --- a/qiskit/quantum_info/operators/symplectic/pauli.py +++ b/qiskit/quantum_info/operators/symplectic/pauli.py @@ -105,7 +105,7 @@ class initialization (``Pauli('-iXYZ')``). A ``Pauli`` object can be .. math:: - P &= (-i)^{q + z\cdot x} Z^z \cdot X^x. + P = (-i)^{q + z\cdot x} Z^z \cdot X^x The :math:`k`th qubit corresponds to the :math:`k`th entry in the :math:`z` and :math:`x` arrays From 4887f046ac2722d5b9d773b3b2d338455ba7aa91 Mon Sep 17 00:00:00 2001 From: Jake Lishman Date: Tue, 24 May 2022 21:40:20 +0100 Subject: [PATCH 2/2] Restore punctuation --- qiskit/quantum_info/operators/symplectic/pauli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit/quantum_info/operators/symplectic/pauli.py b/qiskit/quantum_info/operators/symplectic/pauli.py index 7c966fa29295..5e0df3cd2df1 100644 --- a/qiskit/quantum_info/operators/symplectic/pauli.py +++ b/qiskit/quantum_info/operators/symplectic/pauli.py @@ -105,7 +105,7 @@ class initialization (``Pauli('-iXYZ')``). A ``Pauli`` object can be .. math:: - P = (-i)^{q + z\cdot x} Z^z \cdot X^x + P = (-i)^{q + z\cdot x} Z^z \cdot X^x. The :math:`k`th qubit corresponds to the :math:`k`th entry in the :math:`z` and :math:`x` arrays