Hi,
On the emu_sv version 2.7.1, the function emu_sv.state_vector.StateVector.get_basis_state_from_index does not have the correct edian-ness. For example,
from emu_sv.state_vector import StateVector
zero_state = StateVector.make(4)
print(zero_state) ## Output: tensor([1.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j], dtype=torch.complex128)
print(zero_state.get_basis_state_from_index(0)) ## Output: 'rrrr' <<<< It should be "gggg" >>>>
Hi,
On the emu_sv version 2.7.1, the function
emu_sv.state_vector.StateVector.get_basis_state_from_indexdoes not have the correct edian-ness. For example,from emu_sv.state_vector import StateVectorzero_state = StateVector.make(4)print(zero_state) ## Output: tensor([1.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j, 0.+0.j], dtype=torch.complex128)print(zero_state.get_basis_state_from_index(0)) ## Output: 'rrrr' <<<< It should be "gggg" >>>>