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

Hea init bug #171

Merged
merged 19 commits into from
Jun 28, 2022
Merged

Hea init bug #171

merged 19 commits into from
Jun 28, 2022

Conversation

alexfleury-sb
Copy link
Collaborator

Init of the HEA raises an error if the the number of qubits and electrons are specified.

    if not (bool(molecule) ^ (bool(n_qubits) and (bool(n_electrons) | reference_state == "zero"))):
TypeError: unsupported operand type(s) for |: 'bool' and 'str'

It is especially annoying when working with a QubitOperator as an input.

@ValentinS4t1qbit ValentinS4t1qbit merged commit 7898063 into develop Jun 28, 2022
@ValentinS4t1qbit ValentinS4t1qbit deleted the hea_init_bug branch June 28, 2022 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants