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

Qiskit / qiskit / 11076723215
88%

Build:
DEFAULT BRANCH: main
Ran 27 Sep 2024 08:22PM UTC
Jobs 1
Files 890
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

27 Sep 2024 06:49PM UTC coverage: 88.883% (+0.04%) from 88.846%
11076723215

push

github

web-flow
[Oxidize BasisTranslator] Add rust-native `compose_transforms()` (#13137)

* Initial: Add `compose_transforms` and `get_example_gates` to Rust.

* Add: `compose_transform` logic in rust

* Fix: Correct the behavior of `compose_transforms`.
-  Use `PackedOperation.control_flow` instead of `CONTROL_FLOW_OP_NAMES` to check if an instructuion is a control flow operation.
- Remove panic statement when checking for example gates.
- Use qreg when adding an instruction to the mock_dag in `compose_transforms`.
- Add missing comparison check in for loop to compare the mapped instructions.
- Use borrowed `DAGCircuit` instances in the recursion of `get_example_gates`, do not use extract.
- Fix behavior of `get_example_gates` to return `PackedInstruction` instances instead of `NodeIndex`.

* Fix: Leverage rust-based `circuit_to_dag` converters.
- Use `circuit_to_dag` and `DAGCircuit::from_circuit_data` to convert `QuantumCircuit` instances.

* Format: Fix indentation of import lines in `compose_transforms.rs`

* Formatting: Separate complicated type aliases

* Fix: Adapt to new `DAGCircuit` limitations

* Format: Remove unused imports in BasisTranslator

* Fix: Adapt to #13143

* Fix: Code review comments
- Remove unused `circuit_to_dag` and `OperationRef` imports.
- Streamline complex types into simpler aliases.
- Rename `CircuitRep` to `CircuitFromPython`.
- Reshape `get_example_gates` to work with `CircuitData` instances during its recursion.
- Remove unnecessary clone of `gate_name` in `compose_transform`.
- Use `mapped_instructions` values when iterating in `compose_transforms`.
- Rename `DAGCircuit::substitute_node_with_dag` to `DAGCircuit::py_*` in rust.
- Adapted `_basis_search` to return a tuple of tuples instead of a 4-tuple.

* Fix: More commments from code review
- Remove stale comment related to #3947
- Rename tuple instances to `GateIdentifier`.
- Rename `doomed_nodes` to `nodes_to_replace`.
- Add docstring for `get_example_gates`.
- Rename `get_exam... (continued)

160 of 164 new or added lines in 8 files covered. (97.56%)

13 existing lines in 3 files now uncovered.

74145 of 83419 relevant lines covered (88.88%)

376326.73 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
80.0
crates/accelerate/src/basis/mod.rs
3
97.66
crates/accelerate/src/basis/basis_translator/compose_transforms.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
88.26
-0.36% qiskit/transpiler/passes/synthesis/unitary_synthesis.py
4
92.98
0.5% crates/qasm2/src/lex.rs
7
90.91
-5.3% qiskit/synthesis/two_qubit/xx_decompose/decomposer.py
Jobs
ID Job ID Ran Files Coverage
1 11076723215.1 27 Sep 2024 08:22PM UTC 890
88.88
GitHub Action Run
Source Files on build 11076723215
  • Tree
  • List 890
  • Changed 67
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 43feab33 on github
  • Prev Build on main (#11076700975)
  • Next Build on main (#11078555137)
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