Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make functions accept StateVector in addition to Numpy array #253

Open
2 tasks
kevinsung opened this issue Jun 23, 2024 · 0 comments
Open
2 tasks

Make functions accept StateVector in addition to Numpy array #253

kevinsung opened this issue Jun 23, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@kevinsung
Copy link
Collaborator

kevinsung commented Jun 23, 2024

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:

  • gates/
  • protocols/
@kevinsung kevinsung added the good first issue Good for newcomers label Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant