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

Qiskit / qiskit / 10742451788
88%

Build:
DEFAULT BRANCH: main
Ran 06 Sep 2024 05:37PM UTC
Jobs 1
Files 877
Run time 2min
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

06 Sep 2024 04:26PM UTC coverage: 89.132% (-0.002%) from 89.134%
10742451788

push

github

web-flow
Add method to add instructions to a DAGCircuit from an iterator of PackedInstruction (#13032)

* Initial: Add add_from_iter method to DAGCircuit
- Introduce a method that adds a chain of `PackedInstruction` continuously avoiding the re-linking of each bit's output-node until the very end of the iterator.
   - TODO: Add handling of vars
- Add header for a `from_iter` function that will create a `DAGCircuit` based on a chain of `PackedInstruction`.

* Fix: leverage new methods in layers
- Fix incorrect re-insertion of last_node.

* Fix: Keep track of Vars for add_from_iter
- Remove `from_iter`

* Fix: Incorrect modification of last nodes in `add_from_iter`.
- Use `entry` api to either modify or insert a value if missing.

* Fix: Cycling edges in when adding vars.
- A bug that adds duplicate edges to vars has been temporarily fixed. However, the root of this problem hasn't been found yet. A proper fix is pending. For now skip those instances.

* Fix: Remove set collecting all nodes to be connected.
- A set collecting all the new nodes to connect with a new node was preventing additional wires to connect to subsequent nodes.

* Fix: Adapt to #13033

* Refactor: `add_from_iter` is now called `extend` to stick with `Rust` nomenclature.

* Fix docstring

- Caught by @ElePT

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>

* Fix: Remove duplicate vars check

* Fix: Corrections from code review.
- Use Entry API to modify last nodes in the var.
- Build new_nodes with an allocated vec.
- Add comment explaining the removal of the edge between the output node and its predecessor.

* Fix: Improper use of `Entry API`.
- Use `or_insert_with` instead of `or_insert` to perform actions before inserting a value.

---------

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>

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

19 existing lines in 5 files now uncovered.

72718 of 81585 relevant lines covered (89.13%)

391981.77 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.39
-0.46% qiskit/transpiler/passes/routing/stochastic_swap.py
2
88.43
-0.36% qiskit/transpiler/passes/synthesis/unitary_synthesis.py
4
91.98
0.25% crates/qasm2/src/lex.rs
6
97.61
-0.46% crates/qasm2/src/parse.rs
6
90.84
-4.58% qiskit/synthesis/two_qubit/xx_decompose/decomposer.py
Jobs
ID Job ID Ran Files Coverage
1 10742451788.1 06 Sep 2024 05:37PM UTC 877
89.13
GitHub Action Run
Source Files on build 10742451788
  • Tree
  • List 877
  • Changed 55
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3d4bab2b on github
  • Prev Build on gh-readonly-queue/main/pr-13104-1a4193a1c52f73f081407b8f234da1b154198da6 (#10739362293)
  • Next Build on main (#10745615622)
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