def __init__(self, bitflip_prob: float, prepend: bool = True):
        """A noise model with readout error.

        Args:
            bitflip_prob: Probability of a bit-flip during measurement.
            prepend: If True, put noise before affected gates. Default: True.
        """
        value.validate_probability(bitflip_prob, 'bitflip prob')
        self.readout_noise_gate = ops.BitFlipChannel(bitflip_prob)
        self._prepend = prepend
A noise model with readout error.

        Args:
            bitflip_prob: Probability of a bit-flip during measurement.
            prepend: If True, put noise before affected gates. Default: True.
        
cirq-core/cirq/contrib/noise_models/noise_models.py