-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add conversion support for Qiskit noise models #577
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #577 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 7 9 +2
Lines 554 867 +313
==========================================
+ Hits 554 867 +313 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good @obliviateandsurrender! Don't think I totally understand how the tests work for the noise models at a detailed level but I think I get it on a high-level basis. Seems like you take a qiskit noise model -> quantum error map (converting qiskit errors to kraus matrices) -> pennylane noise model?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No major comments or issues from my side. Just left some nitpicky stuff 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! 🎉
Context: Add support for converting Qiskit's noise models to PennyLane's noise models.
Description of the Change:
noise_models.py
contains helper methods for converting a Qiskit'sNoiseModel
object to a list of PennyLane Channel objects that are constructed based on their Kraus representation obtained via Qiskit.converter.py
contains theload_noise_model
method, which accepts a Qiskit noise model along with some mentioned keyword arguments and returns the corresponding PennyLane noise model.Benefits:
Noise model construction can be done in PennyLane from a Qiskit one.
Possible Drawbacks:
QubitChannels
will only give Kraus representation and not any information on the corresponding error.Related GitHub Issues: [sc-68045]