pauli_tracker.bitvector_to_boolvector
- pauli_tracker.bitvector_to_boolvector(bitvec, length)[source]
Convert a bitvector to a boolvector.
The bitvector is a list of 64 bit chunks, and in each chunk the bits are ordered from least significant to most significant.
The implementation is very simplistic; you may want to use another more efficient method to access the bits.
- Parameters:
bitvec (
List
[int
]) – The bitvector to convert.length (
int
) – The total number of bits.
- Return type:
List
[bool
]- Returns:
The boolvector.