def numberMapForBits(self, bits):
numberMap = dict()<EOL>for bit in bits:<EOL><INDENT>numbers = self.numbersForBit(bit)<EOL>for number in numbers:<EOL><INDENT>if not number in numberMap:<EOL><INDENT>numberMap[number] = set()<EOL><DEDENT>numberMap[number].add(bit)<EOL><DEDENT><DEDENT>return numberMap<EOL>
Return a map from number to matching on bits,
for all numbers that match a set of bits.

@param bits (set) Indices of bits

@return (dict) Mapping from number => on bits.