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.2.tar.gz
(24.7 kB
view details)
Built Distribution
quao-0.4.13.2-py3-none-any.whl
(51.0 kB
view details)
File details
Details for the file quao-0.4.13.2.tar.gz
.
File metadata
- Download URL: quao-0.4.13.2.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c4eb82623e58baca3bc755b14c916decb9c079bba20d2a462237dba589bead3 |
|
MD5 | 2757798fee783dcdba6c399867e7da6b |
|
BLAKE2b-256 | e5cbdffde0f41ecf9b12d061c29802a616774969f5957f95f53cd1f25528c11e |
File details
Details for the file quao-0.4.13.2-py3-none-any.whl
.
File metadata
- Download URL: quao-0.4.13.2-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e72034c42b8c6c7541ace463b57c63f0ce0d9d7ebc9c5eefb1fab02c70900ebb |
|
MD5 | 4a1dd0c2a54f8a664babae790f2500db |
|
BLAKE2b-256 | 606d5cd1333246e28ecb267c45cdce9864ec16e56154ef2bec5efb513a0dee56 |