Skip to content

Commit

Permalink
Fix docstrings syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mjsutcliffe99 committed Jul 29, 2024
1 parent 1ab1cf7 commit 5d5cdef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyzx/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def replace_1_1(g: BaseGraph[VT,ET], verts: List[VT]) -> BaseGraph[VT,ET]:
return g

def cut_vertex(g,v):
'''Applies the "cutting" decomposition to a vertex, as used in, for example: https://arxiv.org/pdf/2403.10964.'''
"""Applies the ``cutting'' decomposition to a vertex, as used in, for example: https://arxiv.org/pdf/2403.10964."""
g = g.copy()
g0 = g.copy()
g1 = g.copy()
Expand Down Expand Up @@ -515,7 +515,7 @@ def cut_vertex(g,v):
return (g0,g1)

def cut_edge(g,e,ty=1):
'''Applies the "cutting" decomposition to an edge, as used in, for example: https://arxiv.org/pdf/2403.10964. The type ty decides whether to cut with Z- branches or X- branches.'''
"""Applies the ``cutting'' decomposition to an edge, as used in, for example: https://arxiv.org/pdf/2403.10964. The type ty decides whether to cut with Z- branches or X- branches."""
g = g.copy()
g0 = g.copy()
g1 = g.copy()
Expand Down

0 comments on commit 5d5cdef

Please sign in to comment.