KaleidoscopeSimulatorService

class KaleidoscopeSimulatorService[source]

A service for IBMQ device simulators.

Simulators are constructed from noise models that correspond to the latest calibration data returned from the devices.

System simulators are loaded async, and the name corresponds to which underlying simulator is doing the computation, e.g. aer_* or ibmq_*.

Systems are attached to the service as attributes and the service object is available at the top-level via simulators. For example, a ibmq_vigo simulator using Aer can be retrieved via:

from kaleidoscope.qiskit import Simulators
sim = Simulators.aer_vigo_simulator
Traceback (most recent call last):
  File "<ipython-input-1-fe4aa184905b>", line 2, in <module>
    sim = Simulators.aer_vigo_simulator
  File "/opt/miniconda3/envs/qiskit/lib/python3.9/site-packages/kaleidoscope/qiskit/services/_simulators.py", line 190, in __getattr__
    raise AttributeError("Couldn't load {}.".format(attr))
AttributeError: Couldn't load aer_vigo_simulator.

Use %tb to get the full traceback.
refreshing

Is the service refreshing its simulators async.

Type

bool

Methods

KaleidoscopeSimulatorService.__call__()

Call self as a function.

KaleidoscopeSimulatorService.refresh()

Refresh the service for new backends if IBMQ account was not loaded before init.