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.tar.gz
(24.6 kB
view details)
Built Distribution
quao-0.4.13-py3-none-any.whl
(50.9 kB
view details)
File details
Details for the file quao-0.4.13.tar.gz
.
File metadata
- Download URL: quao-0.4.13.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc247698db07f9ff60c412a6115eecbe8b30bb65708ce88ff188f840022e4660 |
|
MD5 | 05e1ecca872f7864c12638dbca3bfdb9 |
|
BLAKE2b-256 | b83c72b121c745f6755dd49f9b8f4b4aafef1d8588dc66619c1bf8e577b6b7ad |
File details
Details for the file quao-0.4.13-py3-none-any.whl
.
File metadata
- Download URL: quao-0.4.13-py3-none-any.whl
- Upload date:
- Size: 50.9 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 | 347fcb1bd141ac3dbd1f46bb66b214341e01c019bb33ea5b7665ab09c6f67a37 |
|
MD5 | cea8bae72327137510aa1b38514c630b |
|
BLAKE2b-256 | cf3ae6cc261011f9007c8fea1301b20ff4de81eaccfac625d2ba181a4806e88d |