-
Notifications
You must be signed in to change notification settings - Fork 141
Add tutorial notebook for M3 readout mitigation #4039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
I made many changes to satisfy CI errors. The most recent error occurs in parsing the notebook. But the location or nature of the error is not included in the error messages. I suppose I could look for another tool to parse the notebook and hope that it errors and that it gives informative error messages. |
Hi @jlapeyre! I've been trying to debug this by using a local preview, and removing chunks of the notebook at a time then trying to see what renders....I can get the notebook to render just fine if I remove everything between "Theoretical background" and "Requirements" 🤣 but it's very unclear what exactly is causing the error. The "unexpected character" it complains about is not immediately apparent. I suspect it has something to do with LaTeX/KaTeX?? Possibly the \newcommands? Sorry I can't be of more help... |
@abbycross , thanks for looking at this. I have no problem rendering the notebook locally, just running the notebook server. At least I don't see an obvious mistake. I also can view it here: https://github.com/jlapeyre/documentation/blob/mthree-tutorial/docs/tutorials/readout-error-mitigation-sampler.ipynb But a tool (called "acorn" I think) seems to be unable to parse it:
Either the location in the notebook file of the parse error is not available, or it is somehow suppressed. Is there a way I can run this tool locally? EDIT: |
Yes - you can follow the README for instructions. Also, once we fix this 😆 you will want to do the following (or I can help with these):
I think I see that the |
Thanks. I started with the README. I already have nodejs installed. I'm hoping I can just run the javascript script that is reporting the error, without going down the container path.
This sounds like a great idea. Makes sense that most tools skip it in order to let the user get something done. But the doc building CI should be less tolerant. WAIT: I do have this: \DeclareMathOperator{\CZ}{CZ} Maybe it's not supported. I can try just |
Tried changing the definition for |
I was finally able to get the entire notebook to pass all checks locally when I got rid of all the \newcommands and \DeclareMathOperator (I searched for all the new commands in use and replaced them with their long form), and I found a set of |
Ok, that didn't seem to fix it. Would you like me to commit my local changes to your branch? You'll want to do a really close reading of it, if so, to make sure all the symbols/expressions look as they need to, after my changes... but at least it would save you doing the search and replace for all the |
This tutorial presents an application of qiskit-addon-mthree, the "Matrix-free Measurement Mitigation (M3)" technique. (It is actually readout mitigation). The technique is applied to a simple hidden shift problem
In particular, we follow citation 5 in the article linked above (arXiv).
This PR was co-authored by @kevinsung