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.
Run truncation after resolving parameters (Qiskit#1428)
* run truncation after resolving parameters Since 0.9.0, Aer reduces qubits and their instructions if they do not affect measured qubits. On the other hand, parameterized QObj contains indices of instructions and their values. Previously these values are set to instructions of a circuit after running truncation, which may reduce some of instructions. Consequently, indices of parameterized QObj may address wrong instructions in a truncated cicuit. This fix changes the order of processing of truncation and parameterization: First, Aer resolves paramers, and then runs truncation. * Reword release note Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
- Loading branch information
1 parent
3474811
commit b086dc6
Showing
3 changed files
with
53 additions
and
2 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
releasenotes/notes/resolve_parameters_before_truncation-ec7074f1f0f831e2.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,11 @@ | ||
--- | ||
fixes: | ||
- | | ||
Fixes a bug with truncation of circuits in parameterized Qobjs. | ||
Previously parameters of parameterized QObj could be wrongly resolved | ||
if unused qubits of their circuits were truncated, because indices of | ||
the parameters were not updated after the instructions on unmeasured qubits | ||
were removed. | ||
See `#1427 <https://github.com/Qiskit/qiskit-aer/issues/1427>`__ | ||
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
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