Skip to main content

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

Project description

QM Simulator as a Service

Run Quantum Machines Qua simulator instances at scale.

Supported versions

  • v2_4_0
  • v2_2_2
  • v2_2_0
  • v2_1_3

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:

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.

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.

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.1.tar.gz (10.6 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.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qm_saas-1.0.1.tar.gz
  • Upload date:
  • Size: 10.6 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.1.tar.gz
Algorithm Hash digest
SHA256 5799269bae094d552544c8d9612a7382d7dbcd443fc079e777346d01408bac12
MD5 d1cdaac9203fb278263a8987fe17125c
BLAKE2b-256 43df53ba35ec814ff645871ada5e02450f7fa9dae7516df0ccde7cb16aee5365

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qm_saas-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb5e95b06309a8e124cb7733ef811ad6ec26f29699ecc72dd84bdfcbada6a4da
MD5 aa65fb37adae1c6fd3fdb55e4bcab62d
BLAKE2b-256 cd4c64ea6e1a74ddf2952adc99a8cbd98b5f415cb2524f712c41cec1c8fb4937

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