-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a839d51
commit a19b39a
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |