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

PauliExpectation warning given unexpectedly #6159

Closed
woodsp-ibm opened this issue Apr 5, 2021 · 0 comments
Closed

PauliExpectation warning given unexpectedly #6159

woodsp-ibm opened this issue Apr 5, 2021 · 0 comments
Assignees
Labels
bug Something isn't working mod: opflow Related to the Opflow module

Comments

@woodsp-ibm
Copy link
Member

When running the following test

https://github.com/Qiskit/qiskit-nature/blob/01ec334a18fbcf2368765dfd2d522e116da9de0e/test/algorithms/ground_state_solvers/test_groundstate_eigensolver.py#L334

it prints this message unexpectedly to me.

Measured Observable is not composed of only Paulis, converting to Pauli representation, which can be expensive.

In looking it seems to be when the expectation is taken of the aux_operators. This is a ListOp of PauliSumOps i.e. a List of a number of different operators like dipole X, num particles etc of which an expectation is computed against the result state of VQE to measure these.

Now at the time of writing this test is failing to meet the final result. That's a different problem than the above but in looking at that is when I saw this message appearing

@woodsp-ibm woodsp-ibm added the bug Something isn't working label Apr 5, 2021
@woodsp-ibm woodsp-ibm added the mod: opflow Related to the Opflow module label Apr 5, 2021
ikkoham added a commit to ikkoham/qiskit-terra that referenced this issue Apr 22, 2021
@mergify mergify bot closed this as completed in 77da2b5 May 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mod: opflow Related to the Opflow module
Projects
None yet
Development

No branches or pull requests

2 participants