Skip to content

Commit

Permalink
typing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
meandmytram committed Feb 14, 2025
1 parent 4cf61a7 commit d92a244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mdopt/mps/canonical.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def phys_dimensions(self) -> List[int]:
return [self.tensors[i].shape[1] for i in range(self.num_sites)]

@property
def all_dimensions(self) -> List[Tuple[int, int, int]]:
def all_dimensions(self) -> List[Tuple[int, ...]]:
"""
Returns the list of all dimensions of the MPS.
"""
Expand Down
2 changes: 1 addition & 1 deletion mdopt/mps/explicit.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def phys_dimensions(self) -> List[int]:
return [self.tensors[i].shape[1] for i in range(self.num_sites)]

@property
def all_dimensions(self) -> List[Tuple[int, int, int]]:
def all_dimensions(self) -> List[Tuple[int, ...]]:
"""
Returns the list of all dimensions of the MPS.
"""
Expand Down

0 comments on commit d92a244

Please sign in to comment.