Skip to main content

QM Simulator as a Service is a client library to launch simulator instances for QUA programs.

Project description

QoP Simulator as a Service

Run QoP simulator instances at scale.

Supported versions

  • v2_4_0
  • v2_2_2
  • v2_2_0
  • v2_1_3

Installation

In order to run the example use a python3 virtual environment and install the requirements:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Now you can run any example.

Authentication

Your QoPSaaS administrator should provide you an email and password to access the service. You can use these credentials to authenticate to the service the following way:

client = QoPSaaS(host="my_simulator.quantum-machines.co",
                 port=9000,
                 email="your@email.com",
                 password="password")

Contents

test1.py - This example shows how to use the QoP Simulator, a trivial hello world example using the simulator.

test2.py - This example shows how to use the QoP Simulator, it displays how to serialize instances of the simulator and how to deserialize them as well and handle manually the clenaup of the simulator.

Remember to modify the host and port, as well as your credentials in the example file to match your QoPSaaS instance.

Execute the example

Then run the example:

python3 test1.py

Troubleshooting

Dependency issues

Make sure you are using python 3.10 and the requirements file.

If you get an error with dependencies an exhaust frozen list of dependencies is requirements.frozen.txt. This could be useful for developers who want to install the most precise version of the dependencies.

Security concerns

Serialization of instances will contain login information for the QoPSaaS platform. Be careful not to distribute the credentials to the public.

Report issues

If you find any issue, please report it to the QoPSaaS administrator by serializing your instance and sending it to them. You can do this by running the following code:

client = QoPSaaS("....",
                 9000)

qopsass = client.simulator(QoPVersion.v2_2_0)
qopsass.spawn()

json = qopsass.to_dict()

# Send the following json to your QoPSaaS administrator
print(json)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qm_saas-1.0.0.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qm_saas-1.0.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file qm_saas-1.0.0.tar.gz.

File metadata

  • Download URL: qm_saas-1.0.0.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for qm_saas-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7bcebed33a64f3e0c8b7b0d7e8096e7590ca8fc6ceeee1f27a17caac5186499d
MD5 a05f37d20f9eb613d5366b9ec719b1bd
BLAKE2b-256 0e9ce0ab4d70df6a6582af2352b7715bb6daccdc3e29f8b1d4945dc2983b610f

See more details on using hashes here.

File details

Details for the file qm_saas-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: qm_saas-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for qm_saas-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57088a53fd86f5f9ff48c7f145679d0c1e32f355f0af7f6c733c084770678a59
MD5 f585a7f1703e9d435fc105355c214241
BLAKE2b-256 56837c16b1b87f589f96b8ff04b0ac51465c0ccc790ee09b667a3e267dac7ac0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page