Skip to main content

Classiq SDK Package

Reason this release was yanked:

Invalid Python requirements

Project description

Classiq

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_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 = circuit_generator.generate()
circuit.show()

License

See license.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

classiq-0.1.14-1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

classiq-0.1.14-1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file classiq-0.1.14-1.tar.gz.

File metadata

  • Download URL: classiq-0.1.14-1.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for classiq-0.1.14-1.tar.gz
Algorithm Hash digest
SHA256 259f4f75dbdf934ea756ad8ccffd1b3d0501f8f4aeb5cfcd96109259c32c1785
MD5 474ea9be45375468e4103cfc4e20c0dd
BLAKE2b-256 55d4437a5efd4fa9df31d535c45dd9b0ca53ee02bed6fb7df7d2042e58f4b222

See more details on using hashes here.

File details

Details for the file classiq-0.1.14-1-py3-none-any.whl.

File metadata

  • Download URL: classiq-0.1.14-1-py3-none-any.whl
  • Upload date:
  • Size: 22.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

File hashes

Hashes for classiq-0.1.14-1-py3-none-any.whl
Algorithm Hash digest
SHA256 738ee8e61d011bf2d9d2e581be5ce09e2c0e46b94ffeac57341a60bf45534119
MD5 fd8547b12813e8ab39d1a0f8bb613cad
BLAKE2b-256 8c84393cc808f5b112a040435483f97d6d280250cad7551073efb2fa1d7c9b06

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page