Ran
|
Jobs
1
|
Files
1260
|
Run time
36s
|
Badge
Embed ▾
README BADGES
|
push
github
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>
1 of 1 new or added line in 1 file covered. (100.0%)
74129 of 84963 relevant lines covered (87.25%)
61112.32 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
93.76 |
-0.24% | crates/qasm2/src/expr.rs |
2 |
80.0 |
-2.22% | qiskit/extensions/quantum_initializer/squ.py |
5 |
90.91 |
-0.51% | crates/qasm2/src/lex.rs |
6 |
97.13 |
-0.46% | crates/qasm2/src/parse.rs |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 6342833412.1 | 1260 |
87.25 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|