Skip to content

0 68 0

Released on 2025-02-11.

Upgrade Instructions

Enhancements

  1. 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];).
  2. Report an indicative error when not releasing local variables inside control, invert and power statements.
  3. 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.
  4. 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) and prepare_state(np.ones(4) / 4, 0, q).

Interface Changes

  1. The synthesize and write_qmod functions now accept a quantum entry point. Instead of synthesize(create_model(main)), write synthesize(main).