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

Qiskit / Qiskit.jl / 43964778643
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: more-recent-news
DEFAULT BRANCH: main
Ran 16 Nov 2026 09:56PM UTC
Jobs 1
Files 11
Run time 1min
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

16 Nov 2026 09:54PM UTC coverage: 88.434% (+0.3%) from 88.153%
43964778643

push

github

web-flow
Remove the offset kwarg (#105)

The offset kwarg was meant to let qubit indexing count from 0, but it
only patched the code paths that consulted it explicitly.  Everything
reaching QuantumCircuitData through the AbstractArray interface still
assumed 1-based indexing, because size() and axes() were never adjusted
to match the overridden firstindex().  On an offset=0 circuit,
firstindex(qc.data) returned 0 while axes(qc.data) returned OneTo(n), so
eachindex threw a BoundsError and collect threw an ArgumentError even
though hand-rolled iteration worked.

Doing this properly means custom axes, in the style of OffsetArrays,
rather than an overridden firstindex.  That belongs in a separate type;
see the QuantumCircuit0 idea in #104.

Dropping offset lets QuantumCircuitData inherit firstindex, lastindex
and iteration from AbstractArray, so the two hand-written iterate
methods and the index shift in getindex all go away.

In qk_circuit_get_instruction, the `.+ offset` broadcasts were doing two
jobs beyond the offset itself: copying out of memory that
qk_circuit_instruction_clear frees before the function returns, and
widening UInt32 to the Int element type of CircuitInstruction.  A bare
copy() would preserve UInt32 and fail to convert, so these become
explicit Vector{Int} constructions, which copy and convert in one step.

The removed zero-based testset also covered out-of-range index errors,
which were not tested anywhere else; those are re-added 1-based, along
with a testset asserting that indexing, iteration and collect agree on
qc.data.

This is a breaking change to the functions exported from Qiskit.C.

Assisted-by: Claude Opus 5

30 of 30 new or added lines in 2 files covered. (100.0%)

1 existing line in 1 file now uncovered.

497 of 562 relevant lines covered (88.43%)

52.97 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
95.49
1.01% src/circuit.jl
Jobs
ID Job ID Ran Files Coverage
1 43964778643.1 16 Nov 2026 09:56PM UTC 11
88.43
GitHub Action Run
Source Files on build 43964778643
  • Tree
  • List 11
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #43964778643
  • 7e567935 on github
  • Prev Build on gh-readonly-queue/main/pr-102-e8d2ff6e60474672d98b0641b1b965afa4d8d29e (#40913785491)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc