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

Qiskit / qiskit / 6343988061 / 1
87%
main: 88%

Build:
Build:
LAST BUILD BRANCH: sparse-pauli-list-commutes
DEFAULT BRANCH: main
Ran 28 Sep 2023 09:08PM UTC
Files 1260
Run time 23s
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

28 Sep 2023 06:40PM UTC coverage: 87.237% (-0.02%) from 87.258%
6343988061.1

push

github

web-flow
Add documentation on OpenQASM 2 phase conventions (#10801) (#10913)

* Add documentation on OpenQASM 2 phase conventions

OpenQASM 2 as a language does not provide a way to specify global
phases, either of operations or the entire program.  The prose of the
defining paper talks about the `u1` and `rz` instructions from
`qelib1.inc` as having different global phases, however since the
language cannot represent this, the header file defines `rz` apparently
as a direct alias to `u1`.

Qiskit's position has always been that we interpret `rz` as using the
phase convention of `RZGate`, and `u1` uses the different convention of
`PhaseGate`.  This commit adds documentation to the pages on OpenQASM 2
about this difference, and includes an example of how to override
Qiskit's default if the generating code (e.g. pyZX) wants to use an
alternative phase convention.

* Comment on the number of overrides needed

Co-authored-by: Julien Gacon <gaconju@gmail.com>

---------

Co-authored-by: Julien Gacon <gaconju@gmail.com>
(cherry picked from commit 10461f18c)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>

74119 of 84963 relevant lines covered (87.24%)

61174.63 hits per line

Source Files on job 6343988061.1
  • Tree
  • List 0
  • Changed 23
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6343988061
  • 8d3fd887 on github
  • Prev Job for on stable/0.25 (#6339429057.1)
  • Next Job for on stable/0.25 (#6356007382.1)
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