-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
correct noise channel approximate equality #6632
correct noise channel approximate equality #6632
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6632 +/- ##
==========================================
- Coverage 97.86% 97.86% -0.01%
==========================================
Files 1084 1084
Lines 94225 94218 -7
==========================================
- Hits 92215 92208 -7
Misses 2010 2010 ☔ 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.
This looks fine, but please add more information to the commit description when you commit (for instance, the context from the linked issue)
This fixes two related bugs related to equality checks for noise channels:
The first issue isfixed by just adding approximate=True to the @value_equality decorator for each class and removing their explicit implementations of approx_eq. The second issue just required the inclusion of n_qubits in DepolarizingChannel.value_equality_values
Fixes: #6631