0 48 0
Released on 2024-09-10.
Upgrade Instructions
- Python SDK
- The IDE upgrades automatically.
Enhancements
- Improved error messages.
- Added
SIGNED
andUNSIGNED
built-in constants to improve readability of QNum types. SDK:QNum[4, SIGNED, 1]
. Native:qnum<4, SIGNED, 1>
. QNum
types can specify just the size property. SDK:QNum[4]
andQNum("n", 4)
. Native:qnum<4>
. Such types are unsigned (is_signed=False
) integers (fraction_digits=0
) by default.- Execution on remote providers is no longer subject to any time limit when using
ExecutionSession
or executing models without classical execution code. Note: simulation on Classiq backends is still subject to time limit. - In-place add operations (
inplace_add
) now support signed variables.
Bug Fixes
- Fixed an operand-related bug. Might occur when calling a function recursively
in one of its operands (for example:
foo(lambda: foo(...))
). - Fixed an expression-related bug. Might occur when using the same variable in multiple expressions.
- Fixed in-place XOR operations (
^=
/inplace_xor
) in the presence of signed variables. The sign variable is now interpreted as part of the significand without special treatment. - Fixed synthesis of arithmetic operations nested in a within-apply statement.
Interface Changes
- SDK: Deprecated parameter names in built-in operations were removed.
control(ctrl=..., operand=...)
=>control(ctrl=..., stmt_block=...)
within_apply(compute=..., action=...)
=>within_apply(within=..., apply=...)
power(power=..., operand=...)
=>power(exponent=..., stmt_block=...)
invert(operand=)
=>invert(stmt_block=...)
Library Additions
- Added a new notebook for solving the Differential equation using the HHL Algorithm, to simulate war games.