Skip to content

Commit 076cd1a

Browse files
committed
Correct spelling mistakes found in comments.
1 parent 7a9ad5e commit 076cd1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygsti/models/gaugegroup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def transform_matrix_inverse(self) -> _np.ndarray:
647647
"""
648648
if self._inv_matrix is None:
649649
self._inv_matrix = _np.linalg.inv(self._operation.to_dense())
650-
self._inv_matrix[0, :] = 0.0 # ensure invers is *exactly* TP
650+
self._inv_matrix[0, :] = 0.0 # ensure inverse is *exactly* TP
651651
self._inv_matrix[0, 0] = 1.0 # as otherwise small variations can get amplified
652652
return self._inv_matrix
653653

@@ -1012,7 +1012,7 @@ class TrivialGaugeGroupElement(GaugeGroupElement):
10121012
def __init__(self, dim):
10131013
"""
10141014
Creates a new trivial gauge group element of dimension `dim`.
1015-
(so transform matirx is a `dim` by `dim` identity matrix).
1015+
(so transform matrix is a `dim` by `dim` identity matrix).
10161016
"""
10171017
self._matrix = _np.identity(dim, 'd')
10181018
GaugeGroupElement.__init__(self)

0 commit comments

Comments
 (0)