qml
qml copied to clipboard
Differentiable error mitigation
A simple notebook showing off the new differentiable error mitigation functions with ZNE https://github.com/PennyLaneAI/pennylane/pull/2757 as well as trying to initiate people also to think of variationally optimizing the mitigation scheme itself.
Initial commit only contains a rough sketch of the contents to enable early feedback on what the demo should contain.
Thank you for opening this pull request.
You can find the built site at this link.
Deployment Info:
- Pull Request ID:
529
- Deployment SHA:
aa94c5565575c99f8a90f8c00d8656808ffc996d
(TheDeployment SHA
refers to the latest commit hash the docs were built from)
Note: It may take several minutes for updates to this pull request to be reflected on the deployed site.
Is there a way to have fancy latex symbols like \lightning
, in the demo? E.g. using \usepackage{wasysym}
or stmaryrd
.
I think it makes a lot of sense here and would make it much more readable (or maybe I just like the symbol 😄 )
@Qottmann you could use emojis (⚡) directly in the demo! Simply by copying and pasting the emoji directly into the text, or by using a VSCode plugin that allows you to insert emojis, should work.
Amazing! That is the last possibility I would have tried for latex text 😆
Oh do you need to use the lightning symbol inside larger latex mathematical equations?
Yes, and it is working!
Do I have to manually tell the repo to use the latest master of pennylane? The deployment fails due to an ImportError: cannot import name 'fold_global' from 'pennylane.transforms'
@Qottmann you need to change the base of the PR to point to the dev
branch:
- the
master
branch of the QML repo is pinned to the released version of PL - the
dev
branch is pinned to the GitHub master version of PL
I just changed this for you, so retriggering the build should now work :)
Hello @KetpuntoG and @CatalinaAlbornoz , I tagged you for a review for this demo in which we want to showcase new functionalities added in https://github.com/PennyLaneAI/pennylane/pull/2757 as well as initiate discussion about differentiating mitigation parameters themselves. Do you think it is realistic to have this demo ready for publication with the new release, which includes these new features?
Hello @KetpuntoG and @CatalinaAlbornoz , I tagged you for a review for this demo in which we want to showcase new functionalities added in PennyLaneAI/pennylane#2757 as well as initiate discussion about differentiating mitigation parameters themselves. Do you think it is realistic to have this demo ready for publication with the new release, which includes these new features?
Yes, I think it is possible! It's going to take some work, but it makes sense to have it ready 🚀
I just found this demo, it would be good to quote it at some point
This demo here (kind of) outdates this older demo, as it showcases the same functionality, but now with proprietary PennyLane functions that can be differentiated. This other demo is also more a mitiq
than a PennyLane demo. I dont think it should be removed, but I would not advertise it here because it could be confusing. What do you think?
This demo here (kind of) outdates this older demo, as it showcases the same functionality, but now with proprietary PennyLane functions that can be differentiated. This other demo is also more a
mitiq
than a PennyLane demo. I dont think it should be removed, but I would not advertise it here because it could be confusing. What do you think?
Ah great, glad to hear you had your eye on it. Forget it then 😄
The last two deployments for some reason did not render my changes, is this a new CI feature? I.e. I changed some formatting but not the code itself, is it somehow recognizing that and hence not re-running the demo?
edit: resolved - browser cache
It should be good now. @KetpuntoG can you give it a second pass?
From my side this is perfect, thank you very much for the changes! We will carry out a last review and if all goes well next week it will be published 😄
I could not get the suggested latex expression inside the matplotlib part rendered so I reversed that change. I could render it locally, so should be good now with the latest commit.
@isaacdevlugt I addressed your comments.
@larawatson Same, the only thing left is the "with respect to", not sure how to resolve that. Since we are talking about derivatives it would be okay for me to have "with respect to" appear multiple times in the last paragraph.
I also put it into "optimization" section since that felt more adequate (was "getting started" before). Let me know if you want to change that.
Nice work @Qottmann 🥳