def sample(
        self, axes: Sequence[int], repetitions: int = 1, seed: cirq.RANDOM_STATE_OR_SEED_LIKE = None
    ) -> np.ndarray:
        """Samples the MPS.

        Args:
            axes: The axes to sample.
            repetitions: The number of samples to make.
            seed: The random number seed to use.
        Returns:
            The samples in order.
        """

        measurements: list[list[int]] = []
        prng = value.parse_random_state(seed)

        for _ in range(repetitions):
            measurements.append(self._measure(axes, prng, collapse_state_vector=False))

        return np.array(measurements, dtype=int)
Samples the MPS.

        Args:
            axes: The axes to sample.
            repetitions: The number of samples to make.
            seed: The random number seed to use.
        Returns:
            The samples in order.
        
cirq-core/cirq/contrib/quimb/mps_simulator.py