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

Add general Heisenberg Hamiltonian and XXX model #1538

Merged
merged 16 commits into from
Dec 10, 2024
Merged
31 changes: 24 additions & 7 deletions doc/source/api-reference/qibo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1267,13 +1267,6 @@ In addition to the abstract Hamiltonian models, Qibo provides the following
pre-coded Hamiltonians:


Heisenberg XXZ
^^^^^^^^^^^^^^

.. autoclass:: qibo.hamiltonians.XXZ
:members:
:member-order: bysource

Non-interacting Pauli-X
^^^^^^^^^^^^^^^^^^^^^^^

Expand Down Expand Up @@ -1326,6 +1319,30 @@ Max Cut
This is useful for systems that contain many qubits for which constructing
the full matrix is intractable.


Heisenberg model
^^^^^^^^^^^^^^^^

.. autoclass:: qibo.hamiltonians.Heisenberg
:members:
:member-order: bysource


Heisenberg XXX
^^^^^^^^^^^^^^

.. autoclass:: qibo.hamiltonians.XXX
:members:
:member-order: bysource


Heisenberg XXZ
^^^^^^^^^^^^^^

.. autoclass:: qibo.hamiltonians.XXZ
:members:
:member-order: bysource

_______________________


Expand Down
8 changes: 6 additions & 2 deletions src/qibo/hamiltonians/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from qibo.hamiltonians.hamiltonians import *
from qibo.hamiltonians.models import TFIM, XXZ, MaxCut, X, Y, Z
from qibo.hamiltonians.hamiltonians import (
Hamiltonian,
SymbolicHamiltonian,
TrotterHamiltonian,
)
from qibo.hamiltonians.models import TFIM, XXX, XXZ, Heisenberg, MaxCut, X, Y, Z
Loading
Loading