Skip to content

Commit

Permalink
Correct typo in MPS max_bond_dimension from PaulaGarciaMolina/main
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjosegarciaripoll authored Jun 21, 2024
2 parents e1d530f + 7888d66 commit 3c78083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/seemps/state/mps.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def bond_dimensions(self) -> list[int]:

def max_bond_dimension(self) -> int:
"""Return the largest bond dimension."""
return max(a.shape[1] for a in self._data)
return max(a.shape[-1] for a in self._data)

def to_vector(self) -> Vector:
"""Convert this MPS to a state vector."""
Expand Down

0 comments on commit 3c78083

Please sign in to comment.