-
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's NoiseModel
s
#569
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #569 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 7 8 +1
Lines 554 734 +180
==========================================
+ Hits 554 734 +180 ☔ View full report in Codecov by Sentry. |
…pennylane-qiskit into noise-model-convert
NoiseModel
sNoiseModel
s
pennylane_qiskit/noise_models.py
Outdated
if noise_model._default_readout_error or noise_model._local_readout_errors: | ||
warn("Readout errors are not supported currently and will be skipped.") | ||
|
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.
@trbromley we have in the requirements that if readout noise is present, PennyLane raises an error. But, I'm wondering if raising a warning instead and skipping the readout noise makes more sense? 🤔
A minimalistic version of this PR is implemented here. |
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 particular thingsError
object to that of a corresponding Qiskit's instructions consisting of their Pauli or Kraus representationNoiseModel
object to a list of PennyLane Channel objects that are constructed based on the above description.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 becomes easier and hardware noise models can be better studied.
Possible Drawbacks:
Related GitHub Issues: [sc-68045]