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

  • 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:

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.2.tar.gz (10.7 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.2-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qm_saas-1.0.2.tar.gz
  • Upload date:
  • Size: 10.7 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.2.tar.gz
Algorithm Hash digest
SHA256 1c54c9471db6d9a29786454aedbd10a78b51c47f8211535a28619cb3ffdd169f
MD5 6466aaf02badc698199de1eec5f020e7
BLAKE2b-256 a33b404f469e193e34a00a8ae91d8d0e296b88a4a695e90f8933e48aafd5afa7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qm_saas-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5fa61264def66b9a807ffe82e52fb34cde41b0bfcfba6ebca568ac350171bbaa
MD5 bb0859b3ecb3cd93b75a17ab74514ab0
BLAKE2b-256 38d06c7ec6f17c7451e8468982b5cefe99315ec0291681d2edd118d3856f53bf

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