fqe.util.invert_bitstring_with_mask

Invert a bitstring with a mask.

string (bitstring) - the bitstring to invert masklen (int) - the value to mask the inverted bitstring to

(bitstring) - a bitstring inverted up to the masking length