def on_job_result(self, job: CircuitSampleJob, result: study.Result) -> None:
        """Incorporates sampled results.

        This method is called by driving code when sample results have become
        available.

        The results should be incorporated into the collector's state.
        """
Incorporates sampled results.

        This method is called by driving code when sample results have become
        available.

        The results should be incorporated into the collector's state.
        
cirq-core/cirq/work/collector.py