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.1k stars 2.34k forks source link

Promote `CONTROL_FLOW_OP_NAMES` to public API #13057

Closed jakelishman closed 1 month ago

jakelishman commented 1 month ago

Summary

This is generally useful for Qiskit's built-in transpiler passes, and we've had some interest in using it for the same reasons from outside the library. While the control-flow structure from within Rust might change in the future, in the immediate term and from Python space, it feels fair to expose this as public API, since all the information contained in it is certainly already public.

Details and comments

Minor request from @ihincks.

qiskit-bot commented 1 month ago

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

coveralls commented 1 month ago

Pull Request Test Coverage Report for Build 10623602313

Details


Files with Coverage Reduction New Missed Lines %
crates/qasm2/src/expr.rs 1 94.02%
crates/accelerate/src/two_qubit_decompose.rs 1 90.82%
crates/qasm2/src/lex.rs 6 91.48%
crates/qasm2/src/parse.rs 24 95.77%
<!-- Total: 32 -->
Totals Coverage Status
Change from base Build 10598013395: -0.03%
Covered Lines: 71623
Relevant Lines: 80321

💛 - Coveralls