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.10.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

classiq-0.1.10-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file classiq-0.1.10.tar.gz.

File metadata

  • Download URL: classiq-0.1.10.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.12 Linux/5.8.0-1042-azure

File hashes

Hashes for classiq-0.1.10.tar.gz
Algorithm Hash digest
SHA256 c5c935b68906ef05c6180224842e2c3a0bdcdfa844e7c6f13242a4280c5387da
MD5 ff8b944471942e330341d8ac2708f427
BLAKE2b-256 0c3cb7fe0f692a31fa412e3bb57e22976493998cbbeac09b134949f23c122f71

See more details on using hashes here.

File details

Details for the file classiq-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: classiq-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.8.12 Linux/5.8.0-1042-azure

File hashes

Hashes for classiq-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 4ee79ec7f41b1deb1852be3a88d04c3abfe9d6fe2a5299497b690f201cf06eab
MD5 01a9c23757bf3370e1e5b353c0f8b857
BLAKE2b-256 188ca891ed85305bae33d99d179f2d3a85498e68512a2c4a3e4f4d01c946ff38

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