quao


Namequao JSON
Version 0.4.12.1 PyPI version JSON
download
home_pageNone
SummaryQuao Library supporting Quao Platform for Quantum Computing
upload_time2024-03-20 10:36:31
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseThe MIT License (MIT) Copyright © CITYNOW Co. Ltd. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords quao quantum
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# quao 

quao is a supporting library for Quantum Computing.



## Installation

Install quao with pip (Python >=3.10)

```bash
  pip install quao
```
    
## Usage/Examples

```javascript
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

- [CITYNOW Co. Ltd.](https://citynow.vn/)


## Documentation

TBA


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "quao",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "quao, quantum",
    "author": null,
    "author_email": "\"CITYNOW Co. Ltd. \" <corp@citynow.vn>",
    "download_url": "https://files.pythonhosted.org/packages/a4/a3/0d2daee17d23da1b83bc8c5be16d67cf29128f52f3783e53ab65ee539fc1/quao-0.4.12.1.tar.gz",
    "platform": null,
    "description": "\r\n# quao \r\n\r\nquao is a supporting library for Quantum Computing.\r\n\r\n\r\n\r\n## Installation\r\n\r\nInstall quao with pip (Python >=3.10)\r\n\r\n```bash\r\n  pip install quao\r\n```\r\n    \r\n## Usage/Examples\r\n\r\n```javascript\r\nfrom quao import Backend, RequestData, Utils\r\n\r\n# Define sdk name\r\nsdk = \"qiskit\"\r\n\r\n# Pre-processing input data\r\ndef pre_process(input):\r\n    data = RequestData(input, sdk)\r\n    return data\r\n\r\n# Post-processing output data\r\ndef post_process(job):\r\n    output = Utils.counts_post_process(job)\r\n    return output\r\n\r\n\r\ndef handle(event, context):\r\n    # 1. Pre-processing\r\n    requestData = pre_process(event)\r\n\r\n    # 2. Generate Quantum Circuit\r\n    qc = generate_circuit(requestData.input)\r\n\r\n    # 3. Verify and get Backend information\r\n    backend = Backend(requestData, qc)\r\n\r\n    # 4. Submit job and wait up to 1 min for job to complete.\r\n    job = backend.submit_job(qc)\r\n\r\n    # 5. Post-process\r\n    if job.jobResult:\r\n        job = post_process(job)\r\n    response = Utils.generate_response(job)\r\n\r\n    # 6. Send back the result\r\n    return response\r\n```\r\n\r\n\r\n## Authors\r\n\r\n- [CITYNOW Co. Ltd.](https://citynow.vn/)\r\n\r\n\r\n## Documentation\r\n\r\nTBA\r\n\r\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT) Copyright \u00a9 CITYNOW Co. Ltd. All rights reserved.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "Quao Library supporting Quao Platform for Quantum Computing",
    "version": "0.4.12.1",
    "project_urls": {
        "Homepage": "https://citynow.vn/"
    },
    "split_keywords": [
        "quao",
        " quantum"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3e1f38ef6b94211b1fbf33c279db2f29716f55f03e0b5b44d1141486b28093d1",
                "md5": "7347568596e710886d12f4126575323e",
                "sha256": "38ab995b7e71357ee75adada502cdabd2f6106c1d69ab4afe7e1dfbce25c12df"
            },
            "downloads": -1,
            "filename": "quao-0.4.12.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7347568596e710886d12f4126575323e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 50936,
            "upload_time": "2024-03-20T10:36:26",
            "upload_time_iso_8601": "2024-03-20T10:36:26.766451Z",
            "url": "https://files.pythonhosted.org/packages/3e/1f/38ef6b94211b1fbf33c279db2f29716f55f03e0b5b44d1141486b28093d1/quao-0.4.12.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a4a30d2daee17d23da1b83bc8c5be16d67cf29128f52f3783e53ab65ee539fc1",
                "md5": "73d018f252cafc5437c54415d845c5ff",
                "sha256": "e9874afc5cdabd0706008f5605f26752fc28b9a7ce117922d3457572e789dcdc"
            },
            "downloads": -1,
            "filename": "quao-0.4.12.1.tar.gz",
            "has_sig": false,
            "md5_digest": "73d018f252cafc5437c54415d845c5ff",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 24563,
            "upload_time": "2024-03-20T10:36:31",
            "upload_time_iso_8601": "2024-03-20T10:36:31.031729Z",
            "url": "https://files.pythonhosted.org/packages/a4/a3/0d2daee17d23da1b83bc8c5be16d67cf29128f52f3783e53ab65ee539fc1/quao-0.4.12.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-20 10:36:31",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "quao"
}
        
Elapsed time: 0.20306s