qm-saas


Nameqm-saas JSON
Version 1.0.2 PyPI version JSON
download
home_pageNone
SummaryQM Simulator as a Service is a client library to launch simulator instances for QUA programs.
upload_time2024-07-04 09:54:47
maintainerNone
docs_urlNone
authorQuantum Machines
requires_python<3.12,>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # QM Simulator as a Service

Run Quantum Machines Qua simulator instances at scale.

## Supported versions
 * v3_1_0
 * v2_4_0
 * v2_2_2
 * v2_2_0
 * v2_1_3

# Configuration of v3_1_0

The simulated hardware provides 1 controller (con1) with 8 frontend modules (FEM).
The 8 FEMs are split into 4 low frequency (LF, FEM 1 to 4)  and 4 microwave (MW, FEM 5 to 8) modules.

# Authentication

Your QM representative provides you an email and password to access the service.
You can use these credentials to authenticate to the service the following way:

```python
client = QoPSaaS(email="your@email.com",
                 password="password")
```

# Running your program on a simulator

You can spawn simulators and directly connect to them with your Qua program.

```python
from qm import QuantumMachinesManager, SimulationConfig
from qm.qua import play, program

from qm_saas.client import QoPSaaS, QoPVersion

config = {
    # your Qua program configuration
}

client = QoPSaaS(email="john.doe@quantum-machines.co", password="secret")

with client.simulator(QoPVersion.v2_2_2) as instance:
    qmm = QuantumMachinesManager(
        host=instance.sim_host,
        port=instance.sim_port,
        connection_headers=instance.default_connection_headers
    )

    with program() as prog:
        play("playOp", "qe1")

    qm = qmm.open_qm(config)
    job = qm.simulate(prog, SimulationConfig(int(1000)))
```

Wrapping your program in a `with` statement ensures that the simulator is properly cleaned up after the program is done running.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "qm-saas",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12,>=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Quantum Machines",
    "author_email": "info@quantum-machines.co",
    "download_url": "https://files.pythonhosted.org/packages/a3/3b/404f469e193e34a00a8ae91d8d0e296b88a4a695e90f8933e48aafd5afa7/qm_saas-1.0.2.tar.gz",
    "platform": null,
    "description": "# QM Simulator as a Service\n\nRun Quantum Machines Qua simulator instances at scale.\n\n## Supported versions\n * v3_1_0\n * v2_4_0\n * v2_2_2\n * v2_2_0\n * v2_1_3\n\n# Configuration of v3_1_0\n\nThe simulated hardware provides 1 controller (con1) with 8 frontend modules (FEM).\nThe 8 FEMs are split into 4 low frequency (LF, FEM 1 to 4)  and 4 microwave (MW, FEM 5 to 8) modules.\n\n# Authentication\n\nYour QM representative provides you an email and password to access the service.\nYou can use these credentials to authenticate to the service the following way:\n\n```python\nclient = QoPSaaS(email=\"your@email.com\",\n                 password=\"password\")\n```\n\n# Running your program on a simulator\n\nYou can spawn simulators and directly connect to them with your Qua program.\n\n```python\nfrom qm import QuantumMachinesManager, SimulationConfig\nfrom qm.qua import play, program\n\nfrom qm_saas.client import QoPSaaS, QoPVersion\n\nconfig = {\n    # your Qua program configuration\n}\n\nclient = QoPSaaS(email=\"john.doe@quantum-machines.co\", password=\"secret\")\n\nwith client.simulator(QoPVersion.v2_2_2) as instance:\n    qmm = QuantumMachinesManager(\n        host=instance.sim_host,\n        port=instance.sim_port,\n        connection_headers=instance.default_connection_headers\n    )\n\n    with program() as prog:\n        play(\"playOp\", \"qe1\")\n\n    qm = qmm.open_qm(config)\n    job = qm.simulate(prog, SimulationConfig(int(1000)))\n```\n\nWrapping your program in a `with` statement ensures that the simulator is properly cleaned up after the program is done running.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "QM Simulator as a Service is a client library to launch simulator instances for QUA programs.",
    "version": "1.0.2",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38d06c7ec6f17c7451e8468982b5cefe99315ec0291681d2edd118d3856f53bf",
                "md5": "bb0859b3ecb3cd93b75a17ab74514ab0",
                "sha256": "5fa61264def66b9a807ffe82e52fb34cde41b0bfcfba6ebca568ac350171bbaa"
            },
            "downloads": -1,
            "filename": "qm_saas-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bb0859b3ecb3cd93b75a17ab74514ab0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.8",
            "size": 17276,
            "upload_time": "2024-07-04T09:54:46",
            "upload_time_iso_8601": "2024-07-04T09:54:46.128545Z",
            "url": "https://files.pythonhosted.org/packages/38/d0/6c7ec6f17c7451e8468982b5cefe99315ec0291681d2edd118d3856f53bf/qm_saas-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a33b404f469e193e34a00a8ae91d8d0e296b88a4a695e90f8933e48aafd5afa7",
                "md5": "6466aaf02badc698199de1eec5f020e7",
                "sha256": "1c54c9471db6d9a29786454aedbd10a78b51c47f8211535a28619cb3ffdd169f"
            },
            "downloads": -1,
            "filename": "qm_saas-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "6466aaf02badc698199de1eec5f020e7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.8",
            "size": 10682,
            "upload_time": "2024-07-04T09:54:47",
            "upload_time_iso_8601": "2024-07-04T09:54:47.633401Z",
            "url": "https://files.pythonhosted.org/packages/a3/3b/404f469e193e34a00a8ae91d8d0e296b88a4a695e90f8933e48aafd5afa7/qm_saas-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-04 09:54:47",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "qm-saas"
}
        
Elapsed time: 0.25633s