Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
4.85k stars 2.29k forks source link

Can't find eval_hamiltonian in optimization.py #114

Closed hellmersjl3ds closed 6 years ago

hellmersjl3ds commented 6 years ago

There used to be a function eval_hamiltonian in qiskit.tools.apps.optimization.py that seems to have gone missing. Ditto for group_paulis.

I did a search for them and I can't find them anywhere is QISKit. Were they replaced?

Expected Behavior

I should be able to import the function such as from qiskit.tools.apps.optimization import eval_hamiltonian

Current Behavior

ImportError: cannot import name 'eval_hamiltonian'

Possible Solution

Identify where those functions went.

Steps to Reproduce (for bugs)

from qiskit.tools.apps.optimization import eval_hamiltonian

Context

Trying to run the Quantum Chemistry tutorial

Your Environment

hellmersjl3ds commented 6 years ago

If nobody is currently working on getting those functions in the right place I can volunteer to do it.

jaygambetta commented 6 years ago

This should be in pr #104 the team is reviewing this pr now. If you want to look at please do and if you have suggest or want to add additions i would suggest commenting with @antoniomezzacapo so that there is no repeated work (or less repeated work :-))

hellmersjl3ds commented 6 years ago

That looks OK to me. I'd be happy to test it out, if that's part of the process.

atilag commented 6 years ago

Closing this bug as it seems it was implemented in #104