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
import asyncio
from classiq import generator
from classiq_interface.generator.state_preparation import (
StatePreparation,
PMF,
StatePreparationOutputs,
Metrics,
NonNegativeFloatRange,
)
from classiq_interface.generator.qft import QftInputs, QFT
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)},
)
circuit_generator = generator.Generator(qubit_count=20, max_depth=100)
output_dict = circuit_generator.StatePreparation(params=sp_params)
state_preparation_output = output_dict[StatePreparationOutputs.OUT]
qft_params = QFT(num_qubits=3)
circuit_generator.QFT(
params=qft_params, in_wires={QftInputs.IN: state_preparation_output}
)
circuit = asyncio.run(circuit_generator.generate())
circuit.show()
License
See license.
Release files for classiq 0.1.8
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.1.8.tar.gz | 13.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| classiq-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / classiq-0.1.8.tar.gz
| Download URL | classiq-0.1.8.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5e0847a5d45defd11fec935a01eb5d4ce0661defc778d2aa6bec5a284c1c138
|
|
BLAKE2b-256 checksum How to use checksums |
679662c5fa6ab29bd477b97036de88773e91f465d610d1fe3e0b52dae2d700f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.8.12 Linux/5.8.0-1042-azure
|
Release files / classiq-0.1.8-py3-none-any.whl
| Download URL | classiq-0.1.8-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a44de3c12a7b3f887cb033a0dd0ff89040c8b0a92d153208720027cf5012c2d
|
|
BLAKE2b-256 checksum How to use checksums |
5b54cc7ed5d4d810be3bd253c7203b168d4255ff6d9f213524ce8637a7123d59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.8.12 Linux/5.8.0-1042-azure
|