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

Qiskit / qiskit / 20145888125
88%

Build:
DEFAULT BRANCH: main
Ran 11 Dec 2025 08:45PM UTC
Jobs 1
Files 884
Run time 3min
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

11 Dec 2025 07:42PM UTC coverage: 88.312% (-0.001%) from 88.313%
20145888125

push

github

web-flow
Add Statevector.from_circuit to mirror Operator.from_circuit (#14981)

* Add Statevector.from_circuit method

Fixes #13621

* Update release notes with feature description

* Fix typo in test comments and remove unused import comment

* Address review comments: remove input_state, use from_instruction, add ignore_set_layout

- Removed input_state parameter to simplify interface (per review)
- Changed implementation to use from_instruction instead of Operator.from_circuit to avoid exponential memory scaling (per review)
- Added ignore_set_layout parameter to mirror Operator.from_circuit (per review)
- Added layout extraction logic following Operator.from_circuit pattern
- Layout permutation application needs guidance - structure in place
- Updated tests: removed input_state test, added ignore_layout test
- Temporarily skipped transpilation test pending layout implementation guidance
- Applied black formatting
- Updated docstring with examples

* Implement layout handling for Statevector.from_circuit using NumPy tensor reordering

* Update release notes: remove input_state, add ignore_set_layout parameter

* Remove debug print statements from tests

* Apply black formatting to test_statevector.py

* Fix: Remove callable() check and parentheses from final_index_layout

* Fix: Add pylint disable for false positive on final_index_layout() call

* fix(statevector): use final_index_layout for correct qubit order

* Update qiskit/quantum_info/states/statevector.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update qiskit/quantum_info/states/statevector.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update qiskit/quantum_info/states/statevector.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update test/python/quantum_info/states/test_statevector.py

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update Statevector.from_circuit transpilation test docstring

---------

Co-authored-by: Julien Gacon <gaconju@gmail.com>

15 of 15 new or added lines in 1 file covered. (100.0%)

16 existing lines in 2 files now uncovered.

96559 of 109339 relevant lines covered (88.31%)

1205414.25 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
4
91.77
0.26% crates/qasm2/src/lex.rs
12
96.62
-0.47% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 20145888125.1 11 Dec 2025 08:45PM UTC 884
88.31
GitHub Action Run
Source Files on build 20145888125
  • Tree
  • List 884
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20145888125
  • b7f42cf9 on github
  • Prev Build on gh-readonly-queue/main/pr-15335-e8e3893785daaa61e1cfccc84b6f88354fef48b0 (#20144175696)
  • Next Build on main (#20149522919)
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

© 2025 Coveralls, Inc