-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add JSON serialization support for NoiseModel classes #7396
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
Merged
+597
−34
Merged
Changes from 14 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
9a0f8f1
Add JSON serialisations
WingCode 6c0d9bb
Add test JSON and fix tests
WingCode 51d9035
Fix tests
WingCode bcc575c
Merge branch 'main' into add-ser-noise-models
pavoljuhas 8da202f
Merge branch 'main' into add-ser-noise-models
mhucka 0643e61
Fix pylint
WingCode e5fa84b
Add tests
WingCode 4e98a55
Add tests
WingCode 52f72cd
Fix tests
WingCode 7d29cad
Fix lint
WingCode edb0c6d
Fix black
WingCode 2e9bbd9
Merge branch 'main' into add-ser-noise-models
WingCode 9b8b7fe
Merge branch 'main' into add-ser-noise-models
WingCode b867010
Fix lint
WingCode 0f06ac3
Merge branch 'main' into add-ser-noise-models
mhucka 555495e
Merge branch 'main' into add-ser-noise-models
WingCode a3b9ea4
Address review comments
WingCode e46ebfe
Fix lint
WingCode 45942cd
Fix lint
WingCode 6957dea
Fix tests
WingCode 0f3aab9
Fix tests
WingCode c8d88a7
Fix tests
WingCode ec315f0
Fix tests
WingCode e03d267
Fix tests
WingCode c6d3059
Fix tests
WingCode 9c02b87
Merge branch 'quantumlib:main' into add-ser-noise-models
WingCode 2d2af5c
Update cirq-core/cirq/contrib/json_test_data/__init__.py
WingCode 4bcbb8b
Update cirq-core/cirq/devices/thermal_noise_model_test.py
WingCode f487d72
Merge branch 'main' into amend-7396-json-noise-models
pavoljuhas 6b454c4
Fix ruff ISC001 - implicitly concatenated string literals
pavoljuhas 4a556be
Restore cirq.contrib contents as it was before
pavoljuhas c9f7cda
Clean up cirq.contrib.json_test_data.spec
pavoljuhas e077495
Prefer `cache` to `lru_cache` for functions without arguments
pavoljuhas 0a1332d
Revisit ThermalNoiseModel serialization
pavoljuhas 18f2565
Drop redundant test of ThermalNoiseModel serialization
pavoljuhas 7b00e93
Review cirq.contrib.noise_models
pavoljuhas 953ac3c
Review noise_models_test
pavoljuhas 0b6325a
Keep sorted order in cirq.json_resolver_cache
pavoljuhas e73c179
Revert cirq.protocols.json_test_data.spec
pavoljuhas 2c93e87
Review PerQubitDepolarizingWithDampedReadoutNoiseModel
pavoljuhas e0cb347
Rewrite JSON support of NoiseModelFromNoiseProperties
pavoljuhas ca36452
Merge branch 'amend-7396-json-noise-models'
pavoljuhas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.