qiskit-community / ffsim

Faster simulations of fermionic quantum circuits.
https://qiskit-community.github.io/ffsim/
Apache License 2.0
22 stars 6 forks source link

Make functions accept StateVector in addition to Numpy array #253

Open kevinsung opened 3 months ago

kevinsung commented 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.

See sample_state_vector for an example of how to support both input types.

Non-exhaustive list of affected modules: