-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#13611) * used modular arithmetic to fix floating point error in heavy-weight sparse_pauli_op * fix comments * reformatted * added release notes and addressed comments * addressed comments * formatted * addressed comments * addressed comments * addressed all comments * formatted (cherry picked from commit 136aaff) Co-authored-by: trigpolynom <[email protected]>
- Loading branch information
1 parent
d83565c
commit 768bd04
Showing
3 changed files
with
22 additions
and
1 deletion.
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/sparse-pauli-op-heavy-weight-fix-aa822428643d642a.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 @@ | ||
fixes: | ||
- | | ||
Fixed a bug where a initializing :class:`.SparsePauliOp` with a large | ||
number of Pauli-``Y`` terms (typically :math:`\geq 100`) and no explicit | ||
``coeffs`` would result in a coefficient close to 1 but with a floating point | ||
error. The coefficient is now correctly 1 per default. | ||
Fixed `#13522 <https://github.com/Qiskit/qiskit/issues/13522>`__. |
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