Skip to content

Commit c858efa

Browse files
Apply suggestion from @Cryoris
shorten release notes Co-authored-by: Julien Gacon <gaconju@gmail.com>
1 parent a112d55 commit c858efa

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

releasenotes/notes/fix-sampled-expval-complex-11393.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ fixes:
55
:meth:`.BitArray.expectation_values` silently dropping the imaginary
66
component of expectation values when the operator has complex coefficients.
77
Both functions now return ``complex`` values when the input coefficients are
8-
complex, and ``float`` values otherwise. Previously, the inner Rust
9-
functions ``sampled_expval_complex`` and
10-
``sampled_expval_sparse_observable`` computed the full complex result but
11-
returned only the real part. Fixed
12-
`#11393 <https://github.com/Qiskit/qiskit/issues/11393>`__.
8+
complex, and ``float`` values otherwise.
9+
Fixed `#11393 <https://github.com/Qiskit/qiskit/issues/11393>`__.

0 commit comments

Comments
 (0)