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

[Question] How to convert into qulacs Hamiltonian in VQE #613

Open
arijit-ship opened this issue Feb 28, 2024 · 0 comments
Open

[Question] How to convert into qulacs Hamiltonian in VQE #613

arijit-ship opened this issue Feb 28, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@arijit-ship
Copy link
Contributor

arijit-ship commented Feb 28, 2024

I am learning qulacs and I am following the VQE tutorial on the official docs(http://docs.qulacs.org/en/latest/apply/6.2_vqe.html)

But I want my Hamiltonian to be Ising spin chain which I have constructed following another tutorial of their documentation (http://docs.qulacs.org/en/latest/apply/5.2_qcl.html#1.Create-a-transverse-magnetic-field-Ising-Hamiltonian)

Now I need to convert the Ising Hamiltonian into qulacs Hamiltonian so that I can use qulacs_hamiltonian.get_expectation_value(state) . In the VQE tutorial qulacs_hamiltonian = create_observable_from_openfermion_text(str(jw_hamiltonian)) . But I am not using openfermion to create the Ising Hamiltonian (I don not know how do so either) I am not sure how to convert it to qulacs Hamiltonian.

Now how do I convert the Ising Hamiltonian into qulacs hamiltonian (Observable)? (edited)

@KowerKoint KowerKoint added the help wanted Extra attention is needed label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants