Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
5.28k stars 2.37k forks source link

Fix qft-plugins for custom 'qft' gates #13181

Closed alexanderivrii closed 2 months ago

alexanderivrii commented 2 months ago

Summary

The HighLevelSynthesis transpiler pass no longer raises an exception when encountering a custom gate that is called "qft" but is not an instance of class QFTGate. Instead, the synthesis plugins for QFT gates ignore such a gate, and the gate's definition is used (if provided).

Fixes #13120 and #13174.

The PR is very short and has backport potential (if desired).

qiskit-bot commented 2 months ago

One or more of the following people are relevant to this code:

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 10923804686

Details


Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/lex.rs 3 91.98%
crates/qasm2/src/parse.rs 6 97.61%
<!-- Total: 9 -->
Totals Coverage Status
Change from base Build 10919208944: 0.5%
Covered Lines: 73483
Relevant Lines: 82724

💛 - Coveralls