quairkit.database.hamiltonian¶
The library of common Hamiltonians.
- quairkit.database.hamiltonian.ising_hamiltonian(edges, vertices)¶
Compute the Ising Hamiltonian
\[\begin{align} H_{Ising}= \sum_{(u,v) \in E(u>v)}\gamma_{uv}Z_u Z_v + \sum_{k \in V}\beta_k X_k \end{align}\]
- quairkit.database.hamiltonian.xy_hamiltonian(edges)¶
Compute the Ising Hamiltonian
\[\begin{align} H_{XY}= \sum_{(u,v) \in E(u>v)}(\alpha_{uv}X_u X_v + \beta_{uv}Y_u Y_v) \end{align}\]
- quairkit.database.hamiltonian.heisenberg_hamiltonian(edges)¶
Compute the Heisenberg Hamiltonian
\[\begin{align} H_{Heisenberg}= \sum_{(u,v) \in E(u>v)}(\alpha_{uv}X_u X_v + \beta_{uv}Y_u Y_v, + \gamma_{uv}Z_u Z_v) \end{align}\]