Skip to main content

qfaas-lib

qfaas-lib is a supporting library for QFaaS Serverless framework for Quantum Computing.

Installation

Install qfaas-lib with pip (Python >=3.10)

  pip install qfaas

Usage/Examples

from qfaas import Backend, RequestData, Utils

# Define sdk name
sdk = "braket"

# 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

Metadata

Release files for qfaas 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qfaas 0.2.3
File Size Uploaded Provenance Actions
qfaas-0.2.3.tar.gz 10.5 kB Without provenance Details for qfaas-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qfaas 0.2.3
File Interpreter ABI Platform Actions
qfaas-0.2.3-py3-none-any.whl Python 3 none any Details for qfaas-0.2.3-py3-none-any.whl

Total release size: 22.9 kB

Release files / qfaas-0.2.3.tar.gz

Download URL qfaas-0.2.3.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
658d9874a2407522a2451a46a039fe001112ea0282b3cf272b66507c261360cb
BLAKE2b-256 checksum
How to use checksums
f58556e1588e863d305701da638e1c4b4c1611ab88cead28c4be9df2d7941c7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / qfaas-0.2.3-py3-none-any.whl

Download URL qfaas-0.2.3-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53690141bc5abe8098067cbf789c8aa43005258950d1bdbd524602d3ccb55abd
BLAKE2b-256 checksum
How to use checksums
ec162704393c9b6e006f7e091bed20df3cd153970e06bfb0b7a5436b67ff4041
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Security for qfaas 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page