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.2.5.tar.gz
(21.5 kB
view details)
Built Distribution
quao-0.4.2.5-py3-none-any.whl
(42.4 kB
view details)
File details
Details for the file quao-0.4.2.5.tar.gz
.
File metadata
- Download URL: quao-0.4.2.5.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9055e8f9e95ba63e274781f5bc0dff7e82a504dc50a03f2156f6830cc0b13a03 |
|
MD5 | a6c454421d61a824221f860e81f73bba |
|
BLAKE2b-256 | a6ec7e1c794de5103cae5c516e40bb4bb70a5facb424aaa7d07cc5fbd7e7f69e |
File details
Details for the file quao-0.4.2.5-py3-none-any.whl
.
File metadata
- Download URL: quao-0.4.2.5-py3-none-any.whl
- Upload date:
- Size: 42.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6013283283f4a1ec1c3891875a5c3bc114c7c0da0df15bd2790f30e297d64d1c |
|
MD5 | ea72ea577e54b7929c04470961538220 |
|
BLAKE2b-256 | 93f05b366097510da805ec90a069c43071d3d18f0948eed420d0a1541a24d2ae |