Module qip::utils[][src]

Expand description

Commonly used short functions.

Functions

Mixes two bitstreams, z_bits and o_bits, takes one bit off the lowest position from each to construct the output, selector is used to choose which to use. 0 indices z_bits a

Extracts bits from a number in a particular order.

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.

Transpose a sparse matrix.