Skip to content

Commit

Permalink
Add release note.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhartman committed Feb 13, 2025
1 parent a839d51 commit a19b39a
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions releasenotes/notes/float-expr-02b01d9ea89ad47a.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
features_circuits:
- |
The classical realtime-expressions module :mod:`qiskit.circuit.classical` can now represent
floating point values of unspecified width, using the new type :class:`~.types.Float`.
The :func:`~.expr.lift` function can be used to create a value expression from a Python
float::
from qiskit.circuit.classical import expr
expr.lift(5.0)
# >>> Value(5.0, Float(const=False))
expr.lift(5.0, try_const=True)
# >>> Value(5.0, Float(const=True))
This type is intended primarily for use in timing-related (duration and stretch)
expressions. It is not compatible with bitwise or logical operations, though it
can be used (dangerously) with these if first explicitly cast to something else.

0 comments on commit a19b39a

Please sign in to comment.