hamil_clever_sim.hamil_runner.SimulationRunnerResult§
- class SimulationRunnerResult(meta)[source]§
Bases:
objectThis class encapsulates the process of running specific kind of simulation, and processing the output into a standard form that can be displayed via the
StatevectorDisplaywidget.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) – TheSimulationRunnerthat spawned this runner.timing_data – A
SimulationTimingDatathat is updated for each stage of the simulation.type – A single member bitflag from
SimulationKindSetthat 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_metadataprocess- rtype:
Data
runrun_direct_calcrun_op_simulationrun_qc_simulationset_typeAttributes
alias of
dict[str,Tuple[complex,float]]typemetadatajob- Data§
alias of
dict[str,Tuple[complex,float]]