feat: add amplitude damping noise model#522
Open
huhaha120 wants to merge 1 commit into
Open
Conversation
43e5a7f to
7fa44d5
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #522 +/- ##
=======================================
Coverage 88.85% 88.85%
=======================================
Files 49 50 +1
Lines 7135 7207 +72
=======================================
+ Hits 6340 6404 +64
- Misses 795 803 +8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AmplitudeDampingNoise,TwoQubitAmplitudeDampingNoise, andAmplitudeDampingNoiseModel.graphix.noise_models.Closes #497
Test Soundness
tests/test_kraus.pychecks that the one-qubit channel matches the Nielsen-Chuang amplitude damping Kraus operators and that the two-qubit channel is the tensor product of the one-qubit channel on both qubits.tests/test_noise_model.pychecks that each pattern command receives the expected one- or two-qubit amplitude damping noise at the same insertion points as the existing depolarising model.tests/test_noisy_density_matrix.pychecks physical action on density matrices:diag(gamma, 1-gamma);Tests
Results:
49 passedAll checks passed!6 files already formattedgit diff --checkproduced no outputNotes
-o addopts=''locally because the repository's default pytest addopts include--benchmark-autosave, which requires the dev benchmark plugin. The focused tests above do not use benchmarking.