Upgrade Instructions
- Python SDK
- The IDE upgrades automatically.
Enhancements
- Introducing generative functions
to the Python SDK. Generative functions are
@qfuncs that support Python control flow, integration with third-party libraries, and debugging. - Execution using IBM devices is available again.
- New method
estimation_costinExecutionSessionevaluates a quantum circuit given a classical cost function. - A new
+=operator performs
in-place addition
Example:
z += x ** 2 - 0.5 * y
5. The state of SampledState supports dot-notation for field access when
representing a quantum struct:
Library Additions
-
Add two new functions for encoding classical data,
encode_in_angleandencode_on_bloch. See notebook. - Add a new example for hybrid classical-quantum neural network. See notebook.
Interface Changes
- Parameter
controlof built-in functions such asCXhas been renamed toctrl. Parametercontrolwill 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
when
machine_precisionis 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.