Skip to content

Commit 04450e7

Browse files
Stephanie Wehnerclaude
andcommitted
Fix SyntaxWarning in stabilizer_states.py docstring
\sqrt in a non-raw docstring is an invalid escape sequence in Python 3.12. Escape to \sqrt — Sphinx renders it identically. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bef1651 commit 04450e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

simulaqron/toolbox/stabilizer_states.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ def __init__(self, data=None, check_symplectic: bool = True):
3636
3737
A qubit in the state :math:`|1>` can be created as ``StabilizerState([[0, 1, 1]])``.
3838
39-
The entangled state :math:`(|00> + |11>)/\sqrt(2)` can be created as
39+
The entangled state :math:`(|00> + |11>)/\\sqrt(2)` can be created as
4040
``StabilizerState([[1, 1, 0, 0], [0, 0, 1, 1]])``.
4141
42-
The entangled state :math:`(|01> + |10>)/\sqrt(2)` can be created as
42+
The entangled state :math:`(|01> + |10>)/\\sqrt(2)` can be created as
4343
``StabilizerState([[1, 1, 0, 0, 0], [0, 0, 1, 1, 1]])``.
4444
4545
:param data: Can be one of the following:

0 commit comments

Comments
 (0)