diff --git a/releasenotes/notes/fix-qpy-symengine-compat-858970a9a1d6bc14.yaml b/releasenotes/notes/fix-qpy-symengine-compat-858970a9a1d6bc14.yaml index 328be02bed2..f4507a958cf 100644 --- a/releasenotes/notes/fix-qpy-symengine-compat-858970a9a1d6bc14.yaml +++ b/releasenotes/notes/fix-qpy-symengine-compat-858970a9a1d6bc14.yaml @@ -37,3 +37,14 @@ issues: ``use_symengine`` flag was set to ``True`` your only option is to load the QPY file using Qiskit 0.46.3 and regenerate it using ``use_symengine=False``. +upgrade_other: + - | + The requirement on the support versions of `symengine `__ + has been pre-emptively capped at < 0.14.0 (which is the next minor version as of this release). + This has been done to protect against a potential incompatibility in :mod:`.qpy` when serializing + :class:`.ParameterExpression` objects. The serialization used in + :ref:`qpy_format` versions 10, 11, and 12 for :class:`.ParameterExpression` + objects is tied to the symengine version used to generate it and there is the potential + for a future symengine release to not be compatible. This upper version cap is to prevent + a future release of symengine causing incompatibilities when trying to load QPY files + using :class:`.qpy.load`. diff --git a/requirements.txt b/requirements.txt index 2dd5e49e2b3..4c13eb6dc60 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,4 @@ dill>=0.3 python-dateutil>=2.8.0 stevedore>=3.0.0 typing-extensions -symengine>=0.11 +symengine>=0.11,<0.14