Skip to content

Commit

Permalink
remove ValueError from qetlab
Browse files Browse the repository at this point in the history
  • Loading branch information
purva-thakre committed Mar 13, 2024
1 parent e721fb5 commit be99ae2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions toqito/state_props/is_separable.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ def is_separable(

if isinstance(dim, int):
dim = np.array([dim, state_len / dim]) # pylint: disable=redefined-variable-type
if np.abs(dim[1] - np.round(dim[1])) >= 2 * state_len * eps:
raise ValueError("The parameter `dim` must evenly divide the length of the state.")
dim[1] = np.round(dim[1])

# nD, xD, pD
Expand Down

0 comments on commit be99ae2

Please sign in to comment.