Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Refer to Trotter Evolution in the video "Time Evolution with Qiskit Nature & Opflow" #1452

Closed
OuCheng-Fu opened this issue May 14, 2023 · 2 comments
Labels
documentation Something is not clear or error in description

Comments

@OuCheng-Fu
Copy link

Dear Everyone,

 I asked about how to implement Quantum Imaginary Time Evolution on IBM Qiskit, and I tried to implement Trotter Time Evolution by referencing this video ([Time Evolution with Qiskit Nature & Opflow - YouTube](https://www.youtube.com/watch?v=PY6PWondOeQ&list=LL&index=1)). At 7:23 of this video, the author tries to implement the trotter evolution of Ising model by the codes in the first picture; however, when I try to implement it on qiskit, it raises two errors: one is for time range: int object is not iterable and another one is "name 'param_bind' is not defined", like the latter 2 pictures I attached. What may be wrong in this process?

                                                                   Sincerely,

                                                                   Ou, Cheng-Fu

                                                                   2023/5/13

Trotter Evolution Code
Error 1
Error 2

@Raghav-Bell
Copy link

Raghav-Bell commented Jun 10, 2023

As per documentation bind_parameters({parameter: parameter_value}) bind_parameters takes dictionary as input.Here param_bind refers to dictionary. ref: Qiskit documentation . As per tutorial notebook param_bind is initialized in cell 11 as follow:
param_bind = { tau: 1, tau_def: 0.5 }
please check if you forgot to initialize it.

@OuCheng-Fu
Copy link
Author

Thank you. I have checked it and solved this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Something is not clear or error in description
Projects
None yet
Development

No branches or pull requests

2 participants