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