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

Qiskit / qiskit / 26893751995
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: fix-bitarray-padding-bitcount
DEFAULT BRANCH: main
Ran 03 Jun 2026 03:39PM UTC
Jobs 1
Files 943
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

03 Jun 2026 03:05PM UTC coverage: 87.457% (-0.09%) from 87.543%
26893751995

push

github

web-flow
Add Custom Gates/Instructions in Rust (#15684)

* Initial: Add Custom Gates/Instructions in Rust
- Add `CustomOperation` trait that allows users to implement methods available in both `Instruction`s and `Gate`s.
- Add the packed representation of `CustomOperation` within a `PackedOperation` called `NativeOperation`.
- Use example within `BasisTranslator`'s `compose transforms function where a dummy gate called `CustomDummy` is added to each `DAGCircuit` instance natively.
- Adapt codebase to new additions.

* Fix: Add case for `CustomInstruction` in QPY
- Add missing case for `CustomInstruction` views in QPY.
- Add docstring to `CustomOperation` trait.
- Add miri flag to `try_add_to_circuit`.

* Fix: Add missing methods in `PackedInstruction`.
- Fix formatting and clean up tests.

* Add: `downcast_ref` for `NativeOperation`.
- Add missing docstrings.

* Remove: Gate and Instruction views.
- The following commit removes different views for `Instruction` vs `Gate` in favor of a consolidated view. Users should be able to use `CustomOperation::kind()` to see the type of operation enclosed.

* Add: Method to push custom operation to a Circuit
- Add `CircuitData::push_custom_operation` method to directly push `CustomOperation` instances into a `CircuitData` instance.
- Add `PackedInstruction::from_custom_operation` method to create a full packed instruction directly from a `CustomOperation` implementor.

* Fix: Implement `Deref` and `DerefMut` for `CustomOp`.

* Fix: `Native` -> `Custom`

* Refactor: Hide `CustomOp` to be internal to the `Circuit` crate
The `CustomOp` struct acts as a container to the `Box<dyn CustomOperation>` and its presence outisde of this crate seems to be a little redundant. The following commit reduces the visibility of this struct to only the `circuit` crate, which makes it easier to process a custom operation without the added layer of wrapping it within this struct.

* Docs: Fix `CustomOperation`s docstring

* Revert: Changes to c... (continued)

276 of 404 new or added lines in 12 files covered. (68.32%)

36 existing lines in 5 files now uncovered.

108707 of 124298 relevant lines covered (87.46%)

961887.74 hits per line

Uncovered Changes

Lines Coverage ∆ File
62
81.98
-0.6% crates/circuit/src/operations.rs
30
87.02
-5.24% crates/circuit/src/packed_instruction.rs
12
74.42
-8.91% crates/transpiler/src/passes/basis_translator/compose_transforms.rs
5
71.01
-0.66% crates/qpy/src/value.rs
4
86.55
-0.17% crates/circuit/src/circuit_data.rs
4
86.65
-0.55% crates/transpiler/src/passes/high_level_synthesis.rs
3
86.87
-2.71% crates/circuit/src/instruction.rs
3
92.79
-0.28% crates/qpy/src/circuit_writer.rs
2
86.95
-0.34% crates/transpiler/src/passes/basis_translator/mod.rs
1
79.58
0.0% crates/cext/src/circuit.rs
1
85.27
0.0% crates/cext/src/dag.rs
1
83.21
-0.21% crates/qpy/src/py_methods.rs

Coverage Regressions

Lines Coverage ∆ File
18
96.68
-1.42% crates/qasm2/src/parse.rs
10
73.84
-0.41% crates/circuit/src/parameter/symbol_expr.rs
4
92.03
-0.26% crates/qasm2/src/lex.rs
3
87.02
-5.24% crates/circuit/src/packed_instruction.rs
1
91.03
0.0% crates/circuit/src/parameter/parameter_expression.rs
Jobs
ID Job ID Ran Files Coverage
1 26893751995.1 03 Jun 2026 03:39PM UTC 943
87.46
GitHub Action Run
Source Files on build 26893751995
  • Tree
  • List 943
  • Changed 18
  • Source Changed 13
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26893751995
  • 64cb86c0 on github
  • Prev Build on gh-readonly-queue/main/pr-16237-34cb82b4524c5c9c4721778d63a45a347f921ffe (#26884850619)
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