qiskit_dynamics.backend.default_experiment_result_function#
- default_experiment_result_function(experiment_name, solver_result, measurement_subsystems, memory_slot_indices, num_memory_slots, backend, seed=None, metadata=None)[source]#
Default routine for generating ExperimentResult object.
To generate the results for a given experiment, this method takes the following steps:
The final state is transformed out of the rotating frame and into the lab frame using
backend.options.solver.If
backend.options.normalize_states==True, the final state is normalized.Measurement results are computed, in the dressed basis, based on both the measurement-related options in
backend.optionsand the measurement specification extracted from the specific experiment.
- Parameters:
experiment_name (
str) – Name of experiment.solver_result (
OdeResult) – Result object fromSolver.solve.measurement_subsystems (
List[int]) – Labels of subsystems in the model being measured.memory_slot_indices (
List[int]) – Indices of memory slots to store the results in for each subsystem.num_memory_slots (
Optional[int]) – Total number of memory slots in the returned output. IfNone,max(memory_slot_indices)will be used.backend (
DynamicsBackend) – The backend instance that ran the simulation. Various options and properties are utilized.seed (
Optional[int]) – Seed for any random number generation involved (e.g. when computing outcome samples).metadata (
Optional[Dict]) – Metadata to add to the header of theExperimentResultobject.
- Return type:
ExperimentResult- Returns:
ExperimentResultobject containing results.- Raises:
QiskitError – If a specified option is unsupported.