This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.29.1 instead.
Reason given by maintainers: Invalid Python requirements
The Classiq Quantum Algorithm Design platform helps teams build sophisticated quantum circuits that could not be designed otherwise
We do this by synthesizing high-level functional models into optimized quantum circuits, taking into account the constraints that are important to the designer. Furthermore, we are able to generate circuits for practically any universal gate-based quantum computer and are compatible with most quantum cloud providers.
Requirements
Python 3.8+
Installation
pip install --upgrade pip
$ pip install 'classiq[all]'
Example
from classiq import generator
from classiq.builtin_functions import StatePreparation, QFT
from classiq_interface.generator.state_preparation import (
PMF,
Metrics,
NonNegativeFloatRange,
)
circuit_generator = generator.Generator(qubit_count=20, max_depth=100)
probabilities = (0.5, 0.1, 0.2, 0.005, 0.015, 0.12, 0.035, 0.025)
pmf = PMF(pmf=probabilities)
sp_params = StatePreparation(
probabilities=pmf,
num_qubits=4,
error_metric={Metrics.KL: NonNegativeFloatRange(upper_bound=0.3)},
)
output_dict = circuit_generator.StatePreparation(params=sp_params)
state_preparation_output = output_dict["OUT"]
qft_params = QFT(num_qubits=3)
circuit_generator.QFT(
params=qft_params, in_wires={"IN": state_preparation_output}
)
circuit = circuit_generator.generate()
circuit.show()
License
See license.
Release files for classiq 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| classiq-0.2.1.tar.gz | 19.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| classiq-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:45.1 kB
Release files / classiq-0.2.1.tar.gz
| Download URL | classiq-0.2.1.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c92bbd87c9b37f352143dfb26e7998231633da1fc405f96f34446a5dfc668de
|
|
BLAKE2b-256 checksum How to use checksums |
d8bc621b928ddc842333e26e45062b307e08ea450eb2e1cacacf2ecb96bcfe51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.12 Linux/5.11.0-1021-azure
|
Release files / classiq-0.2.1-py3-none-any.whl
| Download URL | classiq-0.2.1-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b61ebf115a61d953fbe6edbee345bb6674fdc2ec38fc32dc2de842ee41619e6b
|
|
BLAKE2b-256 checksum How to use checksums |
4995e227755e2f60e4ca6f9cbef687aa96597a088f83632125508e43e8ced7ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.11 CPython/3.8.12 Linux/5.11.0-1021-azure
|