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 estimating using the
ClassiqSimulatorBackendNames.SIMULATOR_STATEVECTOR
backend, compute the expectation value directly from the state vector instead of running shots. This is especially helpful when running VQE. - In the Python SDK, arguments of type
CArray
can 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
synthesize
andwrite_qmod
functions now accept a quantum entry point. Instead ofsynthesize(create_model(main))
, writesynthesize(main)
.