Classiq

Latest version: v0.74.0

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 7

0.68

Released on 2025-02-11.

Upgrade Instructions

- [Python SDK](../classiq_101/registration_installations.md/platform-version-updates)
- The IDE upgrades automatically.

Enhancements

1. Arithmetic assignments and control conditions now support [quantum subscript
expressions](https://docs.classiq.io/latest/qmod-reference/language-reference/statements/numeric-assignment/#path-operators).
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](../qmod-reference/language-reference/statements/control.md),
[invert](../qmod-reference/language-reference/statements/invert.md) and
[power](../qmod-reference/language-reference/statements/power.md) 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](https://docs.classiq.io/latest/qmod-reference/language-reference/quantum-entry-point/?h=quantum+entry+point#model-outputs).
Instead of `synthesize(create_model(main))`, write `synthesize(main)`.

0.67.0

Released on 2025-02-02.

Upgrade Instructions

- [Python SDK](../classiq_101/registration_installations.md/platform-version-updates)
- The IDE upgrades automatically.

Enhancements

1. Unreleased local variables of a function are now un-computed
and released when calling the function under a _compute_ block of a
[Within-apply](../qmod-reference/language-reference/statements/within-apply.md)
statement.

Bug Fixes

1. Fix control optimization for constant equality conditions
(e.g., `control(x == 1, ...)`) producing wrong circuits under certain
conditions.

0.66.1

Released on 2025-01-27.

Upgrade Instructions

- [Python SDK](../classiq_101/registration_installations.md/platform-version-updates)
- The IDE upgrades automatically.

Library Additions

1. Add the functions `amplitude_amplification` and `exact_amplitude_amplification` to the function library.

0.66.0

Released on 2025-01-20.

Upgrade Instructions

- [Python SDK](../classiq_101/registration_installations.md/platform-version-updates)
- The IDE upgrades automatically.

Enhancements

1. The `num_qubits` argument of function `allocate` is now optional. If it is
not specified, it is inferred automatically according to the quantum type
of the allocated variable. Example:

[comment]: DO_NOT_TEST

python
q = QBit()
allocate(q) allocates one qubit for variable 'q'


2. The `execute` parameter of the `QLayer` object is now optional. Example:

[comment]: DO_NOT_TEST

python
QLayer(quantum_program, post_process)


Deprecations

The simulator name "nvidia_state_vector_simulator" has been removed. Please use
ClassiqNvidiaBackendNames.SIMULATOR or "nvidia_simulator" instead.

IDE Changes

1. The Application Configuration Panel used for editing examples in the Built-in Apps folder has been removed.
2. Patched dependencies: Katex.

0.65.1

Released on 2025-01-06.

Upgrade Instructions

- [Python SDK](../classiq_101/registration_installations.md/platform-version-updates)
- The IDE upgrades automatically.

Enhancements

1. The name argument of local [quantum variables](https://docs.classiq.io/latest/qmod-reference/language-reference/quantum-variables/)
is now optional. If a name is not specified, it is inferred automatically from
the Python code. For example, it is now possible to write `q = QBit()`
instead of `q = QBit("q")`.
2. Improve the performance of executing multiple primitives inside one
`ExecutionSession`, such as in `execute_qaoa`.

Deprecations

Function `prepare_int` and `inplace_prepare_int` are now deprecated. Use Qmod out-of-place
and in-place numeric assignment statements instead. For example, instead of `prepare_int(5, my_qnum)`,
write `my_qnum |= 5`.
See more under [numeric assignments](https://docs.classiq.io/latest/qmod-reference/language-reference/statements/numeric-assignment/).

0.64.0

Released on 2024-12-29.

Upgrade Instructions

- [Python SDK](../classiq_101/registration_installations.md/platform-version-updates)
- The IDE upgrades automatically.

Enhancements

1. Improve error messages.

Bug Fixes

1. Fix quantum bits raising an error when used in in-place assignments
(`^=` and `+=`).
2. Fix quantum struct field access raising an error in lambdas.

IDE Improvements

1. Classiq Thumbnail: Updated the Classiq thumbnail image!
2. Links on the IDE model page now directing to Classiq Library.
3. Modify the Quantum Programs URL so that the circuit ID is embedded in its path

New Visualization:

Compact View:

- Clean up variable names in engine blocks.
- Corrected the spacing miscalculation for junction dots.
- Refined padding before allocation
- Hide labels in open functional blocks to create a more space-efficient
display.
- Removed unnecessary dots and labels for low-level QC elements.

Page 2 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.