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

Qiskit / qiskit / 10685536623
89%
main: 88%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/stable/2.3/pr-15534-1c30703cdc6cd71aa1a75fd628cfab3decad2c84
DEFAULT BRANCH: main
Ran 03 Sep 2024 03:25PM UTC
Jobs 1
Files 874
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 Sep 2024 02:56PM UTC coverage: 89.175% (+0.04%) from 89.139%
10685536623

push

github

web-flow
Avoid `ExtraInstructionAttributes` allocation on `unit="dt"` (#13078)

The default value for `Instruction.unit` is `"dt"`.  Previously, the
`OperationFromPython` extraction logic would only suppress allocation of
the extra instruction attributes if all the contained fields were
`None`, but `None` is not actually a valid value of `Instruction.unit`
(which must be a string).  This meant that `OperationFromPython` would
always allocate and store extra attributes, even for the default cases.
This did not affect standard gates appended using their corresponding
`QuantumCircuit` methods (since no Python-space extraction is
performed in that case), but did affect standard calls to `append`, or
anything else that entered from Python space.

This drastically reduces the memory usage of circuits built by
`append`-like methods. Ignoring the inefficiency factor of the
heap-allocation implementation, this saves 66 bytes plus
small-allocation overhead for 2-byte heap allocations (another 14 bytes
on macOS, but will vary depending on the allocator) per standard
instruction, which is on the order of 40% memory-usage reduction.

17 of 26 new or added lines in 2 files covered. (65.38%)

11 existing lines in 5 files now uncovered.

72464 of 81260 relevant lines covered (89.18%)

405879.13 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
87.5
-1.09% crates/circuit/src/circuit_instruction.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
87.5
-1.09% crates/circuit/src/circuit_instruction.rs
1
94.02
-0.24% crates/qasm2/src/expr.rs
1
90.84
-0.06% crates/accelerate/src/two_qubit_decompose.rs
3
88.72
0.09% crates/circuit/src/dag_circuit.rs
5
91.98
0.0% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 10685536623.1 03 Sep 2024 03:25PM UTC 874
89.18
GitHub Action Run
Source Files on build 10685536623
  • Tree
  • List 874
  • Changed 53
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d3b8b918 on github
  • Prev Build on gh-readonly-queue/main/pr-13064-8f3308475ce4d0fbce1a95e7397360a9b352b496 (#10685173222)
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