You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that the StateVector class exists, functions that accept vec as a Numpy array should be updated to also accept a StateVector, in which norb and nelec don't also need to be passed.
Hi @kevinsung. Does this issue still exists since this is a very old Issue? If yes, I'd like to assign it to myself and contribute. Please let me know.
Hi @kevinsung. Does this issue still exists since this is a very old Issue? If yes, I'd like to assign it to myself and contribute. Please let me know.
@tsmanral Yes, this issue still exists. For an example in the gates module, apply_orbital_rotation still only accepts a Numpy array, and should be update to support StateVector:
Now that the StateVector class exists, functions that accept
vec
as a Numpy array should be updated to also accept a StateVector, in whichnorb
andnelec
don't also need to be passed.See
sample_state_vector
for an example of how to support both input types.Non-exhaustive list of affected modules:
gates/
protocols/
The text was updated successfully, but these errors were encountered: