Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bartandrews committed Nov 21, 2024
1 parent 0311020 commit 0f84845
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/ffsim/tenpy/gates/basic_gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# ruff: noqa: N806


def _sym_cons_basic(gate: np.ndarray) -> np.ndarray:
def _sym_cons_basis(gate: np.ndarray) -> np.ndarray:
r"""Convert a gate to the TeNPy (N, Sz)-symmetry-conserved basis.
Args:
Expand Down Expand Up @@ -126,7 +126,7 @@ def givens_rotation(
raise ValueError("undefined spin")

# convert to (N, Sz)-symmetry-conserved basis
Ggate_sym = _sym_cons_basic(Ggate)
Ggate_sym = _sym_cons_basis(Ggate)

return Ggate_sym

Expand Down Expand Up @@ -178,7 +178,7 @@ def num_interaction(theta: float, spin: Spin = Spin.ALPHA_AND_BETA) -> np.ndarra
raise ValueError("undefined spin")

# convert to (N, Sz)-symmetry-conserved basis
Ngate_sym = _sym_cons_basic(Ngate)
Ngate_sym = _sym_cons_basis(Ngate)

return Ngate_sym

Expand All @@ -203,7 +203,7 @@ def on_site_interaction(theta: float) -> np.ndarray:
OSgate[3, 3] = cmath.exp(1j * theta)

# convert to (N, Sz)-symmetry-conserved basis
OSgate_sym = _sym_cons_basic(OSgate)
OSgate_sym = _sym_cons_basis(OSgate)

return OSgate_sym

Expand Down Expand Up @@ -256,6 +256,6 @@ def num_num_interaction(theta: float, spin: Spin = Spin.ALPHA_AND_BETA) -> np.nd
raise ValueError("undefined spin")

# convert to (N, Sz)-symmetry-conserved basis
NNgate_sym = _sym_cons_basic(NNgate)
NNgate_sym = _sym_cons_basis(NNgate)

return NNgate_sym

0 comments on commit 0f84845

Please sign in to comment.