-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix LocalNoisePass for circuit returns from noise func (#1455)
If the local noise pass function returns a QuantumCircuit instead of an instruction or operator this composes the circuit into the DAG so that it is unrolled, rather than added as an opaque circuit instruction. Co-authored-by: Matthew Treinish <[email protected]> Co-authored-by: Toshinari Itoko <[email protected]>
- Loading branch information
1 parent
8847d0d
commit 6461df8
Showing
3 changed files
with
64 additions
and
10 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
12 changes: 12 additions & 0 deletions
12
releasenotes/notes/fix-local-noise-pass-f94546869a169103.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,12 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixes an issue with :class:`.LocalNoisePass` for noise functions that | ||
return a :class:`.QuantumCircuit` for the noise op. These were appended | ||
to the DAG as an opaque circuit instruction that must be unrolled to be | ||
simulated. This fix composes them so that the cirucit instructions are | ||
added to the new DAG and can be simulated without additional unrolling | ||
if all circuit instructions are supported by the simulator. | ||
See `#1447 <https://github.com/Qiskit/qiskit-aer/issues/1447>`__ | ||
for details. |
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