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.12.1b0.tar.gz
(24.6 kB
view hashes)
Built Distribution
quao-0.4.12.1b0-py3-none-any.whl
(51.0 kB
view hashes)
Close
Hashes for quao-0.4.12.1b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd5d7e616ba305267580f59a55cf2535c3e6b65f1646a1f25dee96f3a9c0602f |
|
MD5 | b4a982d7ed28b50023fbce449a980f54 |
|
BLAKE2b-256 | 348be4d639604a85317180a9f7318e07ed60b99e89968f198d7b4d23b7321b43 |