0 68 0
Released on 2025-02-11.
Upgrade Instructions
- Python SDK
- The IDE upgrades automatically.
Enhancements
- Arithmetic assignments and control conditions now support quantum subscript
expressions.
A quantum subscript expression comprises a classical list accessed by a quantum
subscript, e.g.,
x |= subscript([1, 2, 3, 4], y)(in Native Qmod:x = [1, 2, 3, 4][y];). - Report an indicative error when not releasing local variables inside control, invert and power statements.
- When running VQE using the
ClassiqSimulatorBackendNames.SIMULATOR_STATEVECTORbackend, compute the expectation value directly from the state vector instead of running shots. - In the Python SDK, arguments of type
CArraycan now be NumPy arrays, tuples, and similar sequential objects. For example, the following statements are equivalent:prepare_state([0.25, 0.25, 0.25, 0.25], 0, q)andprepare_state(np.ones(4) / 4, 0, q).
Interface Changes
- The
synthesizeandwrite_qmodfunctions now accept a quantum entry point. Instead ofsynthesize(create_model(main)), writesynthesize(main).