-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Hamiltoninan variational ansatz not working when considering Pauli-strings with only identity operators #13644
Comments
Right I believe the wrong parameters are being passed here:
As the qiskit/crates/accelerate/src/circuit_library/pauli_evolution.rs Lines 47 to 52 in b872e88
Not a 100% sure. Maybe someone from the team has a better explanation. |
Thank very much @nihaocami and @Cryoris for having a look! |
To implement the new changes, do I pip install qiskit again? |
We have a bugfix release planned next week, once that is released you will be able to install |
Cheers! Thanks again! |
Environment
What is happening?
The hamiltonian variational ansatz can't produce circuits for pauli strings only containing identity operators.
How can we reproduce the issue?
Code to reproduce the error:
Error Generated:
Why does the error occur?
pauli_evolution(...)
function takes a sparse list of pauli operators like so,However if a pauli string only contains identity operators, they are defined by an empty string and array, which 'pauli_evolution(...)' can't handle.
The question
Is there anyway of circumventing this issue?
PS: Apologies if my syntaxing of this issue is incorrect, this is the first time I have raised an issue on github :)
The text was updated successfully, but these errors were encountered: