Open purva-thakre opened 1 month ago
Nice catch. Yeah, don't quite know why this occurs in the docs only. I am able to run Python 3.12 on Mac with that snippet which yields (correctly) the 0.85 figure.
I wonder if it's somehow about how the docs are sequentially run and weather there might be something residual in the namespace that runs somewhat strangely in the docs for 3.12.
Good to have caught it, but definitely a bit perplexing!
I am able to run Python 3.12 on Mac with that snippet which yields (correctly) the 0.85 figure.
I remember Nate saying something about a difference in a local macOS
device vs. what's used by the workflows. I had unintentionally created a bug in mitiq by trying to please mypy. This led to a test passing locally on his device but the CI/CD would fail all the time.
If you see this code block passing locally on a macOS device, maybe it's a similar issue where the resources used in the runner differ from what's used on your local device. I know we don't use mypy yet but it could still be related to the accuracy of the solvers and available resources?
https://github.com/unitaryfund/mitiq/pull/2127
I did notice this failure twice yesterday. python3.11 would pass while python3.10 got canceled because python3.12 saw the failure in the screenshot.
Ah, nice catch. And good point! It's probably something subtle like that. Which is good as it doesn't appear to be a breaking change, but definitely a bit frustrating as it's not clear where/how the state is being mangled here. Thanks for catching this!
I think we can close this one out, but I'll wait for @purva-thakre to confirm whether I might be missing any reason to not do so.
Did it resolve itself? I have not seen the failure after I created this issue.
It has been a while since I've noticed the issue. If this one does rear its head again, we can go ahead and reopen the issue. For now, I'll tempt fate and close (which I'm sure will trigger the universe to throw the error again inadvertently).
Vincent brought up this failure last week but we did not have a screenshot for it.
The difference between the expected and calculated values is large enough to think it is not due to the accuracy of the solvers.
Interestingly, this failure might happen only for Python 3.12.