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

Qiskit / qiskit-terra / 5649294055
86%
main: 87%

Build:
Build:
LAST BUILD BRANCH: sparsepauliop_default_init
DEFAULT BRANCH: main
Ran 24 Jul 2023 08:32PM UTC
Jobs 1
Files 1267
Run time 19s
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

pending completion
5649294055

push

github

web-flow
Fix empty-barrier handling in OpenQASM 2 (#10469)

The new parser would allow a `barrier;` statement, implicitly
broadcasting it across all qubits in scope.  This is technically not
supported by the OpenQASM 2 specification, but is a useful
quality-of-life extension to the specification (in the same way that
Qiskit interprets barriers, and the OpenQASM 3 specification defines the
`barrier;` statement).  The precise rule is added to the new parser's
`strict` mode.

The OpenQASM 2 _exporter_ similarly should not have been putting out
`barrier;` statements.  These could only occur in Qiskit when a barrier
was explicitly constructed with zero elements (as opposed to the call
`QuantumCircuit.barrier()`, which has the all-in-scope behaviour), and
consequently have no actual meaning or effect.  The exporter is modified
to simply skip such instructions, for as long as Qiskit permits the
qubitless barrier statement.

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

73051 of 84997 relevant lines covered (85.95%)

60063.5 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
93.75
-1.25% qiskit/extensions/unitary.py
2
91.9
1.52% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 5649294055.1 24 Jul 2023 08:32PM UTC 1267
85.95
GitHub Action Run
Source Files on build 5649294055
  • Tree
  • List 1267
  • Changed 24
  • Source Changed 0
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e75893d4 on github
  • Prev Build on gh-readonly-queue/main/pr-10484-802a735ebea547d0d96339c2de4a10f04b0ab8a6 (#5648980794)
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