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

Default argument None leading to error #169

Open
2 tasks
MIWdlB opened this issue Nov 13, 2023 · 0 comments
Open
2 tasks

Default argument None leading to error #169

MIWdlB opened this issue Nov 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@MIWdlB
Copy link
Contributor

MIWdlB commented Nov 13, 2023

Description

QubitSubspaceManager.get_reduced_hamiltonian() has two arguments which default to None.

If no other value is given, the default causes an error.

Fix

Either

  • Remove defaults
  • Add logic to set a suitable value when None input
@MIWdlB MIWdlB added the bug Something isn't working label Nov 13, 2023
@MIWdlB MIWdlB self-assigned this Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant