Skip to main content

bitstring

Function bitstring 

Source
pub fn bitstring(key: &[u64], num_bits: usize) -> String
Expand description

Format a packed Vec<u64> key (from ShotsResult::counts) as a binary string.

Bit 0 of the first word corresponds to classical bit 0 (leftmost character).