code: def sample(self, qubits: List[ops.Qid], repetitions: int=1):
          
          return self._stepper.sample_measurements(
              indices=[self.qubit_map[q] for q in qubits],
              repetitions=repetitions)
docs: Samples from the wave function at this point in the computation.
  
          Note that this does not collapse the wave function.
  
          Returns:
              Measurement results with True corresponding to the `|1>` state.
              The outer list is for repetitions, and the inner corresponds to
              measurements ordered by the supplied qubits.