qat.core.util.load_state_vector_from_bin
- qat.core.util.load_state_vector_from_bin(file, precision=2, count=-1, offset=0)
Construct a numpy array corresponding to a state vector from data in a binary file.
- Parameters:
file (str) – A file containing binary data
precision (int, optional) – precision of the state vector to be loaded, defaults to 2 (double-precision complex number) Default: 2
count (int, optional) – the number of amplitudes to be extracted, defaults to -1 which means all items (the complete file) Default: -1
offset (int, optional) – the offset in number of amplitudes