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

Fix `Interner::with_capacity` for default keys #13092

Closed jakelishman closed 3 weeks ago

jakelishman commented 3 weeks ago

Summary

The new method did not account for allocating the default key, causing code that then tried to use it to panic.

Details and comments

No changelog because the bug isn't released.

qiskit-bot commented 3 weeks ago

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

coveralls commented 3 weeks ago

Pull Request Test Coverage Report for Build 10718577078

Details


Files with Coverage Reduction New Missed Lines %
qiskit/transpiler/passes/synthesis/unitary_synthesis.py 2 88.43%
crates/qasm2/src/lex.rs 6 91.23%
qiskit/synthesis/two_qubit/xx_decompose/decomposer.py 7 90.84%
crates/qasm2/src/parse.rs 18 96.69%
<!-- Total: 33 -->
Totals Coverage Status
Change from base Build 10717386257: -0.04%
Covered Lines: 72582
Relevant Lines: 81424

💛 - Coveralls