hamil_clever_sim.hamil_runner.SimulationRunnerResult§

class SimulationRunnerResult(meta)[source]§

Bases: object

This class encapsulates the process of running specific kind of simulation, and processing the output into a standard form that can be displayed via the StatevectorDisplay widget.

Generating a class per-type allows us to handle each siulation async/on worker threads, such that we can get the output of the much faster methods to display, while the slower methods work in the background.

Parameters:
  • meta (SimulationRunner) – The SimulationRunner that spawned this runner.

  • timing_data – A SimulationTimingData that is updated for each stage of the simulation.

  • type – A single member bitflag from SimulationKindSet that represents the type of simulation this runner will use.

  • data – The final statevector output given after the simulation completes. The data will be in the form of a key value pair, with the key being a ket notation of a state (i.e 001, 010, 110) and the value will be a two tuple, with the first element being the complex amplitude, and the second as the probability out of 100% that this state will be measured.

Methods

get_qc_circuit_metadata

process

rtype:

Data

run

run_direct_calc

run_op_simulation

run_qc_simulation

set_type

Attributes

Data

alias of dict[str, Tuple[complex, float]]

type

meta

data

job

Data§

alias of dict[str, Tuple[complex, float]]