unitaryfund / mitiq

Mitiq is an open source toolkit for implementing error mitigation techniques on most current intermediate-scale quantum computers.
https://mitiq.readthedocs.io
GNU General Public License v3.0
358 stars 157 forks source link

Maxcut-demo tutorial triggers warning or freeze #48 #1846

Open nathanshammah opened 1 year ago

nathanshammah commented 1 year ago

Issue Description

Locally executing make docs in a conda environment on a freshly installed development version of mitiq (make install), prompts debugging warning or freeze at the build of documentation.

0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
purva-thakre commented 1 year ago

I think this might be a duplicate of #1826

https://github.com/unitaryfund/mitiq/actions/runs/4921156704/jobs/8790708057?pr=1745#step:6:144

image

purva-thakre commented 1 year ago

Refer to andrea's comment here for disabling validation in a user's device.

Might need to update the docs for how to enable PYDEVD_DISABLE_FILE_VALIDATION=1 in make docs if the user wishes to disable the warnings.

natestemen commented 1 year ago

Not able to reproduce at this time using rm -rf docs/build && make docs. Maybe we no longer need PYDEVD_DISABLE_FILE_VALIDATION=1 either?

natestemen commented 1 year ago

Ahhh okay this seems to be a python 3.11 performance improvement (using frozen modules). Some more information can be found here: https://stackoverflow.com/questions/75114841/