File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22fixes :
33 - |
4- Fixed an issue in the :func:`.qpy.load` function when reading QPY payloads using
5- QPY format versions >=13 that contained a circuit which contained :class:`.Delay`
6- instructions that had an integer duration value with a duration unit of ``"dt"``
7- were incorrectly loaded through a :class:`.ParameterExpression` as part of the
8- deserialization process. This typically wasn't visible through Python as the
9- :class:`.ParameterExpression` was coerced into an integer when it was accessed
10- from Python. But for code acting on the instruction internally via Rust this could
11- cause issues as it was diverging from underlying expectations around
12- :class:`.Delay` instructions. One concrete example of this is if you passed a
13- circuit loaded via :func:`.qpy.load` to the :func:`.qasm3.dumps_experimental`
14- function this would cause an internal error. This has been fixed so now an integer
15- object is correctly created directly for the duration.
4+ Fixed :func:`.qpy.load` for QPY versions >=13, where :class:`.Delay` instructions with integer
5+ durations could deserialize to incorrect types. This could cause later code to raise errors,
6+ such as :func:`.qasm3.dumps_experimental` returning an error saying "Failed to parse parameter
7+ value". See `#16076 <https://github.com/Qiskit/qiskit/pull/16076>`__ for more detail.
You can’t perform that action at this time.
0 commit comments