Skip to content

Commit

Permalink
Cosmetics: e.g. vs i.e. (#3191)
Browse files Browse the repository at this point in the history
  • Loading branch information
viathor committed Aug 4, 2020
1 parent d848611 commit 335aba8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions cirq/devices/grid_qubit.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def __init__(self, row: int, col: int, *, dimension: int) -> None:
Args:
row: the row coordinate
col: the column coordinate
dimension: The dimension of the qid, e.g. the number of quantum
levels.
dimension: The dimension of the qid's Hilbert space, i.e.
the number of quantum levels.
"""
super().__init__(row, col)
self._dimension = dimension
Expand All @@ -162,8 +162,8 @@ def square(diameter: int, top: int = 0, left: int = 0, *,
diameter: Length of a side of the square
top: Row number of the topmost row
left: Column number of the leftmost row
dimension: The dimension of the qid, e.g. the number of quantum
levels.
dimension: The dimension of the qid's Hilbert space, i.e.
the number of quantum levels.
Returns:
A list of GridQid filling in a square grid
Expand All @@ -188,8 +188,8 @@ def rect(rows: int,
cols: Number of columns in the rectangle
top: Row number of the topmost row
left: Column number of the leftmost row
dimension: The dimension of the qid, e.g. the number of quantum
levels.
dimension: The dimension of the qid's Hilbert space, i.e.
the number of quantum levels.
Returns:
A list of GridQid filling in a rectangular grid
Expand Down
8 changes: 4 additions & 4 deletions cirq/devices/line_qubit.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ def __init__(self, x: int, dimension: int) -> None:
Args:
x: The x coordinate.
dimension: The dimension of the qid, e.g. the number of quantum
levels.
dimension: The dimension of the qid's Hilbert space, i.e.
the number of quantum levels.
"""
super().__init__(x)
self._dimension = dimension
Expand All @@ -141,8 +141,8 @@ def range(*range_args, dimension: int) -> List['LineQid']:
Args:
*range_args: Same arguments as python's built-in range method.
dimension: The dimension of the qid, e.g. the number of quantum
levels.
dimension: The dimension of the qid's Hilbert space, i.e.
the number of quantum levels.
Returns:
A list of line qids.
Expand Down

0 comments on commit 335aba8

Please sign in to comment.