Module qip_iterators::utils

source ·
Expand description

Utilities related to bit manipulation of tensor elements.

Functions

  • Flips the bits in num from ith position to (n-i)th position.
  • Get the bit_index bit value from num.
  • Get the index into an Op matrix
  • Set the bit_index bit in num to value.