forked from Qiskit/qiskit-aer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation and test of QuantumError.from_dict. (Qiskit#1942)
* Implementation and test of QuantumError.from_dict. * Made code lint warning free. --------- Co-authored-by: Jun Doi <[email protected]>
- Loading branch information
1 parent
67b8dcf
commit 92e16f7
Showing
3 changed files
with
213 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
7 changes: 7 additions & 0 deletions
7
releasenotes/notes/quantum_error_from_dict-8188a864109edd67.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
features: | ||
- | | ||
Implements from_dict() method for QuantumError. This takes a dictionary | ||
and checks if style is the one from to_dict() method. If any mismatches | ||
are determined then NoiseError is raised. Else dict is parsed and a new | ||
QuantumError with noise_ops created. |
This file contains 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