Classiq 0.53.0
Released on 2024-10-14.
Upgrade Instructions
- Python SDK
- The IDE upgrades automatically.
Enhancements
-
Introducing generative functions
to the Python SDK. Generative functions are@qfunc
s that support Python
control flow, integration with third-party libraries, and debugging. -
Execution using IBM devices is available again.
-
New method
estimation_cost
inExecutionSession
evaluates a quantum
circuit given a classical cost function. -
A new
+=
operator performs
in-place addition
of quantum numerics.
Example:z += x ** 2 - 0.5 * y
-
The state of
SampledState
supports dot-notation for field access when
representing a quantum struct:struct_sample = sample.state["my_qstruct"] field_sample = struct_sample.my_field
Library Additions
-
Add two new functions for encoding classical data,
encode_in_angle
andencode_on_bloch
. See notebook. -
Add a new example for hybrid classical-quantum neural network. See notebook.
Interface Changes
- Parameter
control
of built-in functions such asCX
has been renamed to
ctrl
. Parametercontrol
will no longer be supported starting on 4/11/24
at the earliest.
Bug Fixes
- Fix classical array slicing in the SDK (
my_list[1:3][0]
). - Fix synthesis of arithmetic operations nested in a within-apply statement
whenmachine_precision
is set. - Fix in-place arithmetic operations (
^=
/+=
) when the value on the
right-hand side is a signed variable that is not aligned with the target
variable.