Skip to content

Commit

Permalink
all unsubscriptable object
Browse files Browse the repository at this point in the history
  • Loading branch information
purva-thakre committed Oct 29, 2023
1 parent 95dad08 commit f9dca8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion toqito/state_props/has_symmetric_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def has_symmetric_extension(

dim = np.int_(dim)

dim_x, dim_y = int(dim[0]), int(dim[1])
dim_x, dim_y = int(dim[0]), int(dim[1])# pylint: disable=unsubscriptable-object
# In certain situations, we don't need semidefinite programming.
if level == 1 or len_mat <= 6 and ppt:
if not ppt:
Expand Down
2 changes: 1 addition & 1 deletion toqito/state_props/is_ppt.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def is_ppt(mat: np.ndarray, sys: int = 2, dim: int | list[int] = None, tol: floa
sqrt_rho_dims = np.int_(sqrt_rho_dims)

if dim is None:
dim = [[sqrt_rho_dims[0], sqrt_rho_dims[0]], [sqrt_rho_dims[1], sqrt_rho_dims[1]]]
dim = [[sqrt_rho_dims[0], sqrt_rho_dims[0]], [sqrt_rho_dims[1], sqrt_rho_dims[1]]]# pylint: disable=unsubscriptable-object
if tol is None:
tol = np.sqrt(eps)
return is_positive_semidefinite(partial_transpose(mat, [sys - 1], dim), tol)

0 comments on commit f9dca8b

Please sign in to comment.