Skip to content

Commit

Permalink
Random doctest failures (#575)
Browse files Browse the repository at this point in the history
* specify full import path

* add comment
  • Loading branch information
purva-thakre authored Apr 30, 2024
1 parent e0aed37 commit c2d1d6e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion toqito/state_props/has_symmetric_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
from picos import partial_trace

from toqito.matrix_props import is_positive_semidefinite
from toqito.state_opt import symmetric_extension_hierarchy
from toqito.state_opt.symmetric_extension_hierarchy import symmetric_extension_hierarchy

# The full import path was specified here because the doctest workflow was failing when the above function could not be
# imported https://github.com/vprusso/toqito/issues/473
from toqito.state_props import is_ppt


Expand Down
5 changes: 4 additions & 1 deletion toqito/state_props/is_antidistinguishable.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

import numpy as np

from toqito.state_opt import state_exclusion
from toqito.state_opt.state_exclusion import state_exclusion

# The full import path was specified here because the doctest workflow was failing when the above function could not be
# imported https://github.com/vprusso/toqito/issues/473


def is_antidistinguishable(states: list[np.ndarray]) -> bool:
Expand Down
5 changes: 4 additions & 1 deletion toqito/state_props/is_distinguishable.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

import numpy as np

from toqito.state_opt import state_distinguishability
from toqito.state_opt.state_distinguishability import state_distinguishability

# The full import path was specified here because the doctest workflow was failing when the above function could not be
# imported https://github.com/vprusso/toqito/issues/473


def is_distinguishable(states: list[np.ndarray], probs: list[float] = None) -> bool:
Expand Down

0 comments on commit c2d1d6e

Please sign in to comment.