Skip to content

Commit

Permalink
Fix two latex issues in docs (#13388)
Browse files Browse the repository at this point in the history
* Fix two latex issues in docs

* Add white space
  • Loading branch information
Eric-Arellano authored Nov 1, 2024
1 parent 8b21013 commit 4c3f8c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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},\
F_{\text{process}} = \frac{|\mathrm{Tr}(G)|^2}{d^2}
Expand Down

0 comments on commit 4c3f8c9

Please sign in to comment.