code: def get_bit_series(self, bits=None):
          
          if bits is None:
              bits = [b for b in self.bits if b not in {None, ''}]
          bindex = []
          for bit in bits:
              try:
                  bindex.append((self.bits.index(bit), bit))
              except (IndexError, ValueError) as exc:
                  exc.args = ('Bit %r not found in StateVector' % bit,)
                  raise
          self._bitseries = StateTimeSeriesDict()
          for i, bit in bindex:
              self._bitseries[bit] = StateTimeSeries(
                  self.value >> i & 1, name=bit, epoch=self.x0.value,
                  channel=self.channel, sample_rate=self.sample_rate)
          return self._bitseries
docs: Get the `StateTimeSeries` for each bit of this `StateVector`.
  
          Parameters
          ----------
          bits : `list`, optional
              a list of bit indices or bit names, defaults to all bits
  
          Returns
          -------
          bitseries : `StateTimeSeriesDict`
              a `dict` of `StateTimeSeries`, one for each given bit