Skip to content

Commit

Permalink
Fixed escape chars in docs, removed tutorials, updated tutorial and h…
Browse files Browse the repository at this point in the history
…owtos
  • Loading branch information
drewvandeth committed Aug 29, 2024
1 parent 0b01428 commit 53daf6f
Show file tree
Hide file tree
Showing 14 changed files with 185 additions and 452 deletions.
128 changes: 67 additions & 61 deletions docs/how_tos/1-how-to-create-codes.ipynb

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions docs/how_tos/2-how-to-work-with-shape-objects.ipynb

Large diffs are not rendered by default.

69 changes: 0 additions & 69 deletions docs/tutorials/1-tutorial-example.ipynb

This file was deleted.

208 changes: 104 additions & 104 deletions docs/tutorials/QEC_Framework_IEEE_2022.ipynb

Large diffs are not rendered by default.

199 changes: 0 additions & 199 deletions docs/tutorials/how-to-use-union-find.ipynb

This file was deleted.

2 changes: 1 addition & 1 deletion src/qiskit_qec/codes/codebuilders/surface_code_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(
dz: Optional[int] = None,
ul_op: Optional[Pauli] = Pauli("Z"),
) -> None:
"""Initializes a surface code builder
r"""Initializes a surface code builder
If d is specified then dx and dz are ignored.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TriangularColorCodeBuilder(Builder):

# pylint: disable=anomalous-backslash-in-string
def __init__(self, d: int) -> None:
"""Initializes a triangular color code builder
r"""Initializes a triangular color code builder
Example:d=3
o
Expand Down
2 changes: 1 addition & 1 deletion src/qiskit_qec/geometry/tiles/checkerboardtile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# pylint: disable=anomalous-backslash-in-string)
class CheckerBoardTile(Tile):
"""Checker Board Tile
r"""Checker Board Tile
The diagram is as follows::
Expand Down
2 changes: 1 addition & 1 deletion src/qiskit_qec/geometry/tiles/diagonalbartile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# pylint: disable=anomalous-backslash-in-string)
class DiagonalBarTile(Tile):
"""Diagonal Bar Tile
r"""Diagonal Bar Tile
The diagram is as follows::
q0 q1 q1 q2
Expand Down
2 changes: 1 addition & 1 deletion src/qiskit_qec/geometry/tiles/hexagontile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# pylint: disable=anomalous-backslash-in-string)
class HexagonTile(Tile):
"""Hexagon Tile
r"""Hexagon Tile
Weight 6 operators (0,1,2)::
Expand Down
2 changes: 1 addition & 1 deletion src/qiskit_qec/geometry/tiles/octasquaretile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# pylint: disable=anomalous-backslash-in-string)
class OctaSquareTile(Tile):
"""Octa-Square Tile
r"""Octa-Square Tile
The tile has the following structure::
Expand Down
2 changes: 1 addition & 1 deletion src/qiskit_qec/geometry/tiles/squarediamondtile.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# pylint: disable=anomalous-backslash-in-string)
class SquareDiamondTile(Tile):
"""Square Diamond Tile (Square or non-Rotated orientation)
r"""Square Diamond Tile (Square or non-Rotated orientation)
The follow labelling is used::
Expand Down
3 changes: 0 additions & 3 deletions src/qiskit_qec/operators/pauli.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ def __init__(
Defaults to 'zx'
num_qubits (int, optional): Number of qubits to use in Pauli. Defaults to None.
Raises:
QiskitError: Something went wrong.
Expand Down
4 changes: 2 additions & 2 deletions src/qiskit_qec/operators/pauli_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


class PauliList(BasePauli, LinearMixin, GroupMixin):
"""`PauliList` inherits from `BasePauli`"""
r"""`PauliList` inherits from `BasePauli`"""

# Set the max number of qubits * paulis before string truncation
_truncate__ = 2000
Expand All @@ -44,7 +44,7 @@ def __init__(
num_qubits: Optional[int] = None,
fast_load: bool = True,
) -> None:
"""Inits a PauliList
r"""Inits a PauliList
Args:
data (BasePauli, np.ndarray, Tuple[np.ndarray], Iterable, None): List of Pauli Operators.
Expand Down

0 comments on commit 53daf6f

Please sign in to comment.