Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two latex issues in docs #13388

Merged
merged 2 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qiskit/quantum_info/operators/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ def power(self, n: float, branch_cut_rotation=cmath.pi * 1e-12) -> Operator:
Non-integer powers of operators with an eigenvalue whose complex phase is :math:`\\pi` have
a branch cut in the complex plane, which makes the calculation of the principal root around
this cut subject to precision / differences in BLAS implementation. For example, the square
root of Pauli Y can return the :math:`\\pi/2` or :math:`\\-pi/2` Y rotation depending on
root of Pauli Y can return the :math:`\\pi/2` or :math:`-\\pi/2` Y rotation depending on
whether the -1 eigenvalue is found as ``complex(-1, tiny)`` or ``complex(-1, -tiny)``. Such
eigenvalues are really common in quantum information, so this function first phase-rotates
the input matrix to shift the branch cut to a far less common point. The underlying
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class RemoveIdentityEquivalent(TransformationPass):

.. math::

\bar{F} = \frac{1 + F_{\text{process}}{1 + d}
\bar{F} = \frac{1 + F_{\text{process}}}{1 + d},
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comma is only to make the two equations render more nicely.
Screenshot 2024-11-01 at 3 22 29 PM

Copy link
Member

@jakelishman jakelishman Nov 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to put an enforced space after the comma to improve it - probably one of \ or \quad depending on how much you want. I'm fine to just merge if this is already good enough for you.


F_{\text{process}} = \frac{|\mathrm{Tr}(G)|^2}{d^2}

Expand Down
Loading