You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue will be used to keep track of all the things that could be changed, removed etc. from mitiq.shadows.
A function to calculate fidelity is in the utilities. But a similar function also exists in cirq.fidelity. The function is mitiq also has some lines flagged by pytest as uncovered.
Re-word all the function docstrings to clarify what the function is supposed to do. Right now, some of the functionalities in this module are not clear for this reason.
Remove random strings in the middle of a function. Are these supposed to be comments?
The following functions are used in the classical post-processing of
classical shadows.
"""
If some error is raised, make sure it is mentioned exactly in the docstring as Raises: SomeError instead of as a Warning.
Is there some kind of check to verify classical shadow size chosen by user is appropriate for the functionality in mitiq.shadows to work as expected?
n_measurements_tomography_bound is only used in a tutorial in the docs. it might be better to define this function there instead of having it in mitiq/shadows/shadows_utils.py
More to be added later.
The text was updated successfully, but these errors were encountered:
Compared to other techniques, mitiq.shadows does not follow the pattern of having a function called execute_with_shadows, shadows.mitigate_executor, and shadows.decorator.
Whenever we get to the cleanup of this module, we should consider a refactor of the above.
This issue will be used to keep track of all the things that could be changed, removed etc. from
mitiq.shadows
.fidelity
is in the utilities. But a similar function also exists incirq.fidelity
. The function is mitiq also has some lines flagged by pytest as uncovered.mitiq/mitiq/shadows/shadows_utils.py
Line 140 in 05be477
mitiq/mitiq/shadows/shadows.py
Lines 138 to 144 in 05be477
mitiq/mitiq/shadows/shadows.py
Lines 191 to 195 in 05be477
mitiq/mitiq/shadows/classical_postprocessing.py
Lines 45 to 48 in 05be477
mitiq/mitiq/shadows/classical_postprocessing.py
Lines 176 to 179 in 05be477
Raises: SomeError
instead of as aWarning
.classical shadow size
chosen by user is appropriate for the functionality inmitiq.shadows
to work as expected?n_measurements_tomography_bound
is only used in a tutorial in the docs. it might be better to define this function there instead of having it inmitiq/shadows/shadows_utils.py
More to be added later.
The text was updated successfully, but these errors were encountered: