• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit / 26518820223 / 1
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: bitarray-counts-records
DEFAULT BRANCH: main
Ran 27 May 2026 03:18PM UTC
Files 923
Run time 52s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 May 2026 02:49PM UTC coverage: 87.763% (-0.01%) from 87.777%
26518820223.1

push

github

web-flow
Fix Statevector.evolve modifying input state in-place (Fixes 15750) (#15905) (#16227)

* [quantum_info.states] Add tests (1 failing) for Statevector.evolve modifying original state

Statevector.evolve() is meant to return the evolved state, with the
original state remaining unmodified. However, some instructions result
in the state being modified. The added tests validate
Statevector.evolve() with various gates, Operator, and QuantumCircuit.
The only instance where the original state is modified is with
DiagonalGate.

* [quantum_info.states] Use new _data array when applying global phase

The _data array of Statevector may be a shallow copy of another
Statevector. Applying a global phase in-place would modify the other
instances. A deep copy doesn't work as this breaks another test:

- test.python.primitives.test_statevector_estimator.TestStatevectorEstimator.test_reset

* [reno] Add bugfix releasenote

* Update releasenotes/notes/fix-statevector-evolve-inplace-modification-be2f31976d5a2e1d.yaml



* Update releasenotes/notes/fix-statevector-evolve-inplace-modification-be2f31976d5a2e1d.yaml



* [tests] Fix test names not being snake-case

* [tests] Fix lint black failing

---------


(cherry picked from commit a8d3aefae)

Co-authored-by: Conrad Haupt <conrad@conradhaupt.com>
Co-authored-by: Julien Gacon <gaconju@gmail.com>

104317 of 118862 relevant lines covered (87.76%)

1010972.47 hits per line

Source Files on job 26518820223.1
  • Tree
  • List 923
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 26518820223
  • 60bfa9d3 on github
  • Prev Job for on gh-readonly-queue/stable/2.4/pr-16227-3da8daba3a63b7394a021405b91a9ca36b7fc637 (#26512019127.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc