There are tools like qutip helping you to simulate a given Hamiltonian. However, I am wondering is there any tool/library or something that takes e.g. a graph (G, V, E) of qubits and resonators, and returns a Hamiltonian. It does not have to be graph though, it can be anything, simply returning "approximated Hamiltonian" from the circuit.
$\begingroup$
$\endgroup$
1
Not sure if this answers your question directly, but Docplex, which is IBM's Decision Optimization CPLEX Modeling for Python is capable of generating an Ising hamiltonian from a cost function. Take a look at this qiskit tutorial.
-
1$\begingroup$ Thanks for your comment. Not really, this library transforms an optimization problem into the QUBO/Ising model. It has nothing to do with the actual Hamiltonian and qubit structure. $\endgroup$ – user185597 Nov 13 '19 at 5:07