You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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 tutorialqulacs_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)The text was updated successfully, but these errors were encountered: