Skip to content

Commit fd64fe5

Browse files
authored
Merge branch 'master' into fix/partial-trace-validation
2 parents ce764b1 + be6586b commit fd64fe5

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

docs/examples/quantum_states/classification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def povm_residual(states: list[np.ndarray], povm: dict[tuple[int, int], np.ndarr
184184
# \end{equation}
185185
#
186186
# We start by finding a basis for :math:`S := \text{range}(M)`, which can be done by picking a linearly independent set
187-
# of :math:`r = 3` columns of :math:`M$` :math:`S = \operatorname{span}\{(2,1,1,-1), (1,2,0,1), (1,0,2,-1)\}`. Then
187+
# of :math:`r = 3` columns of :math:`M`: :math:`S = \operatorname{span}\{(2,1,1,-1), (1,2,0,1), (1,0,2,-1)\}`. Then
188188
# :math:`R_0 = \{S\}` and we proceed recursively:
189189
#
190190
# .. math::
@@ -250,7 +250,7 @@ def povm_residual(states: list[np.ndarray], povm: dict[tuple[int, int], np.ndarr
250250
print(sum(result["factors"]))
251251

252252
# %%
253-
# To similarly determine whether or not :math:`M`` is :math:`2`-incoherent, we proceed further with the recursive
253+
# To similarly determine whether or not :math:`M` is :math:`2`-incoherent, we proceed further with the recursive
254254
# construction by computing
255255
#
256256
# .. math::

docs/examples/quantum_states/state_distinguishability.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,14 @@
8080
# may be obtained by solving the following semidefinite program (SDP).
8181
#
8282
# .. math::
83-
# \begin{align*}
84-
# \text{maximize:} \quad & \sum_{i=0}^n p_i \langle M_i,
85-
# \rho_i \rangle \\
86-
# \text{subject to:} \quad & \sum_{i=0}^n M_i = \mathbb{I}_{\mathcal{X}},\\
87-
# & M_i \in \text{Pos}(\mathcal{X}).
88-
# \end{align*}
83+
# \begin{equation}
84+
# \begin{aligned}
85+
# \text{maximize:} \quad & \sum_{i=0}^n p_i \langle M_i,
86+
# \rho_i \rangle \\
87+
# \text{subject to:} \quad & \sum_{i=0}^n M_i = \mathbb{I}_{\mathcal{X}},\\
88+
# & M_i \in \text{Pos}(\mathcal{X}).
89+
# \end{aligned}
90+
# \end{equation}
8991
#
9092
# This optimization problem is solved in :code:`|toqito⟩` to obtain the optimal
9193
# probability with which Bob can distinguish state :math:`\rho_i`.

docs/examples/quantum_states/state_exclusion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# tutorial on this topic.
1515
#
1616
# Further information beyond the scope of this tutorial can be found in the text
17-
# `:footcite:Pusey_2012_On` as well as the course :footcite:`Bandyopadhyay_2014_Conclusive`.
17+
# :footcite:`Pusey_2012_On` as well as the course :footcite:`Bandyopadhyay_2014_Conclusive`.
1818
#
1919
#
2020
# The state exclusion problem
@@ -207,7 +207,7 @@
207207
print(f"Optimal SDP value: {np.around(opt_value, decimals=2)}")
208208

209209
# %%
210-
# The SDP not only gives us the optimal value, which is $0$ in this case, indicating that the states are
210+
# The SDP not only gives us the optimal value, which is :math:`0` in this case, indicating that the states are
211211
# antidistinguishable, but we also get a set of optimal measurement operators. These should look familiar to the
212212
# measurements we explicitly constructed earlier.
213213
#
@@ -225,7 +225,7 @@
225225
# for which
226226
#
227227
# .. math::
228-
# X = \sum_{j=0}^{m-1} c_j |psi_j\rangle \langle \psi_j|.
228+
# X = \sum_{j=0}^{m-1} c_j |\psi_j\rangle \langle \psi_j|.
229229
#
230230
# It turns out that antidistinguishability is equivalent to :math:`k`-incoherence in the :math:`k = n - 1` case.
231231
# Reproducing one of the results from :footcite:`Johnston_2025_Tight`, we have the following theorem.

0 commit comments

Comments
 (0)