Open kevinsung opened 3 months ago
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.
vec
norb
nelec
See sample_state_vector for an example of how to support both input types.
sample_state_vector
Non-exhaustive list of affected modules:
gates/
protocols/
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/