Skip to main content

Quao Library supporting Quao Platform for Quantum Computing

Project description

quao

quao is a supporting library for Quantum Computing.

Installation

Install quao with pip (Python >=3.10)

  pip install quao

Usage/Examples

from quao import Backend, RequestData, Utils

# Define sdk name
sdk = "qiskit"

# Pre-processing input data
def pre_process(input):
    data = RequestData(input, sdk)
    return data

# Post-processing output data
def post_process(job):
    output = Utils.counts_post_process(job)
    return output


def handle(event, context):
    # 1. Pre-processing
    requestData = pre_process(event)

    # 2. Generate Quantum Circuit
    qc = generate_circuit(requestData.input)

    # 3. Verify and get Backend information
    backend = Backend(requestData, qc)

    # 4. Submit job and wait up to 1 min for job to complete.
    job = backend.submit_job(qc)

    # 5. Post-process
    if job.jobResult:
        job = post_process(job)
    response = Utils.generate_response(job)

    # 6. Send back the result
    return response

Authors

Documentation

TBA

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

quao-0.4.13.1.tar.gz (24.6 kB view details)

Uploaded Source

Built Distribution

quao-0.4.13.1-py3-none-any.whl (51.0 kB view details)

Uploaded Python 3

File details

Details for the file quao-0.4.13.1.tar.gz.

File metadata

  • Download URL: quao-0.4.13.1.tar.gz
  • Upload date:
  • Size: 24.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for quao-0.4.13.1.tar.gz
Algorithm Hash digest
SHA256 764c46cd332eb461885b8f1acfe2d6a90a2978024f71bdb6ab7d8d27f7a75ed1
MD5 d7c0c66fa8ed8d126bbb15d5ac26263a
BLAKE2b-256 9f0f8911f6f86b1f9da22d449697c02b42422961fb486df43c1532930f189b99

See more details on using hashes here.

File details

Details for the file quao-0.4.13.1-py3-none-any.whl.

File metadata

  • Download URL: quao-0.4.13.1-py3-none-any.whl
  • Upload date:
  • Size: 51.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for quao-0.4.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7aef44d2a3ef83804efdc84fdc34caaf2884abd5979f404d65b3530c0437fa24
MD5 bb9192dee4409436623892db9923b16e
BLAKE2b-256 64eb2cb6c55f62fe85f91a46dc69b1aa9b7d89f666de66b9262c52dce6c964ea

See more details on using hashes here.

Supported by

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