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

Cannot Repeat HHL Example Result #6279

Closed
hywong2 opened this issue Apr 21, 2021 · 0 comments · Fixed by #9832
Closed

Cannot Repeat HHL Example Result #6279

hywong2 opened this issue Apr 21, 2021 · 0 comments · Fixed by #9832
Labels
mod: algorithms Related to the Algorithms module

Comments

@hywong2
Copy link

hywong2 commented Apr 21, 2021

Informations

  • Qiskit version: 0.25.0
  • Python version: 3.8
  • Operating system: CentOS 7

What is the current behavior?

There is an HHL example in IBM Qiskit

https://qiskit.org/textbook/ch-applications/hhl_tutorial.html

If I run on that website (click "Try") in Section 4 and set time=np.pi*3/4, I get 100% fidelity as expected. However, if I copy those code and run it on my server or in the IBM Q account, it is no longer 100%.

I also try with my other matrix which I expect to have an exact solution. Again, I get 100% fidelity if I modify the code in that website but I get only 80% if I run on my server. The matrix I am trying is [[1 -0.5],[-0.5, 1]] which has an exact solution if time=np.pi.

Steps to reproduce the problem

What is the expected behavior?

Suggested solutions

If I use python 3.7.3 (3.8 won't work) + qiskit 0.23.5, I can get fidelity = 1.

@kdk kdk transferred this issue from Qiskit/qiskit-metapackage Apr 21, 2021
@woodsp-ibm woodsp-ibm added the mod: algorithms Related to the Algorithms module label Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod: algorithms Related to the Algorithms module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants