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

Qiskit / qiskit / 10686234237
88%

Build:
DEFAULT BRANCH: main
Ran 03 Sep 2024 04:22PM 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.155% (+0.02%) from 89.139%
10686234237

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

6 existing lines in 3 files now uncovered.

72447 of 81260 relevant lines covered (89.15%)

406282.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10686234237.1 03 Sep 2024 04:22PM UTC 0
89.15
GitHub Action Run
Source Files on build 10686234237
Detailed source file information is not available for this build.
  • Back to Repo
  • d3b8b918 on github
  • Prev Build on gh-readonly-queue/main/pr-13064-8f3308475ce4d0fbce1a95e7397360a9b352b496 (#10685173222)
  • Next Build on main (#10691830429)
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