Ran
|
Jobs
1
|
Files
914
|
Run time
2min
|
Badge
Embed ▾
README BADGES
|
push
github
Fix typing of inserted UnitaryGates in quantum_volume (#13479) (#13481) There was a small typing issue in the quantum_volume implementation where there was a mismatch in the Python type and the rust type. The UnitaryGate were being added to the circuit as a rust space PyInstruction instead of a PyGate. This was incorrect as UnitaryGate is unitary and a gate type in python, this mismatch was causing subsequent transpilation or anything working with the unitaries in the quantum volume circuit from rust to mischaracterize the operations as non-unitary so things like getting the matrix would fail. This commit corrects the typing so the gates are added as a unitary operation in the rust typing. This will get much simpler and less error prone when #13272 is implemented and we have a rust native UnitaryGate type. (cherry picked from commit 4bb143275) Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
3 of 3 new or added lines in 1 file covered. (100.0%)
18 existing lines in 5 files now uncovered.79046 of 88909 relevant lines covered (88.91%)
358475.83 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
91.96 |
-0.06% | crates/accelerate/src/two_qubit_decompose.rs |
1 |
92.2 |
0.0% | crates/accelerate/src/unitary_synthesis.rs |
1 |
94.02 |
-0.24% | crates/qasm2/src/expr.rs |
3 |
91.98 |
0.0% | crates/qasm2/src/lex.rs |
12 |
96.69 |
-0.92% | crates/qasm2/src/parse.rs |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | 11978696089.1 | 914 |
88.91 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|