Unlike Result these results contain the final simulator_state of the
system. This simulator_state is dependent on the simulation implementation
and may be, for example, the state vector or the density matrix of the
system.
Args
params
A ParamResolver of settings used for this result.
measurements
A dictionary from measurement gate key to measurement
results. Measurement results are a numpy ndarray of actual
boolean measurement results (ordered by the qubits acted on by
the measurement gate.)
final_simulator_state
The final simulator state.
final_step_result
The step result coming from the simulation, that
can be used to get the final simulator state. This is primarily
for cases when calculating simulator state may be expensive and
unneeded. If this is provided, then final_simulator_state
should not be, and vice versa.
Raises
ValueError
If final_step_result and final_simulator_state are both
None or both not None.
Attributes
params
A ParamResolver of settings used for this result.
measurements
A dictionary from measurement gate key to measurement
results. Measurement results are a numpy ndarray of actual boolean
measurement results (ordered by the qubits acted on by the
measurement gate.)
qubit_map
A map from Qid to index used to define the ordering of the basis in
the result.