def __init__(
        self,
        params: cirq.ParamResolver,
        measurements: Mapping[str, np.ndarray],
        final_simulator_state: TSimulatorState,
    ) -> None:
        """Initializes the `SimulationTrialResult` class.

        Args:
            params: A ParamResolver of settings used for this result.
            measurements: A mapping 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.
        """
        self._params = params
        self._measurements = measurements
        self._final_simulator_state = final_simulator_state
Initializes the `SimulationTrialResult` class.

        Args:
            params: A ParamResolver of settings used for this result.
            measurements: A mapping 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.
        
cirq-core/cirq/sim/simulator.py