Commit 98019fe
fix:
* fix: `SparsePauliOp.to_dict(decimals= 3)` does not return rounded results
* test: add `test_to_dict_decimals`
* add release note
* refactor: release note and test
* style(lint): formatted with black
---------
Co-authored-by: Shelly Garion <46566946+ShellyGarion@users.noreply.github.com>Statevector.to_dict(decimals= 3) does not round results and ignores the decimals keyword (Qiskit#12113)1 parent 429a9c0 commit 98019fe
File tree
3 files changed
+13
-1
lines changed- qiskit/quantum_info/states
- releasenotes/notes
- test/python/quantum_info/states
3 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
489 | 497 | | |
490 | 498 | | |
491 | 499 | | |
| |||
0 commit comments