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

Qiskit / qiskit / 20145282592
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: lightcone-fix
DEFAULT BRANCH: main
Ran 11 Dec 2025 08:20PM 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.3% (-0.01%) from 88.313%
20145282592

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%)

24 existing lines in 4 files now uncovered.

96546 of 109339 relevant lines covered (88.3%)

1206033.63 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
82.3
0.0% crates/circuit/src/parameter/parameter_expression.rs
3
91.52
0.0% crates/qasm2/src/lex.rs
8
73.02
-0.25% crates/circuit/src/parameter/symbol_expr.rs
12
96.15
-0.94% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 20145282592.1 11 Dec 2025 08:20PM UTC 884
88.3
GitHub Action Run
Source Files on build 20145282592
  • Tree
  • List 884
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20145282592
  • b7f42cf9 on github
  • Prev Build on gh-readonly-queue/main/pr-15335-e8e3893785daaa61e1cfccc84b6f88354fef48b0 (#20144175696)
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