Commit Graph

21 Commits

Author SHA1 Message Date
Mattia Robbiano
9853e86deb fixing grad nan 2025-09-20 15:15:40 +02:00
Mattia Robbiano
63266c5ba0 refactor: added function for converting qibo circuit to quimb circuit directly. modified expectation making use of it. added new test script. 2025-09-20 00:18:32 +02:00
pre-commit-ci[bot]
064cff6b33 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-09-09 11:17:49 +00:00
Mattia Robbiano
5e141b200a feat: added expectiation function to compute expectation value of a symbolic hamiltonian using quimb backend. Added function to convers Qibo symbolic hamiltonian in Quimb compatible list of observables. Added a grouping function to combine in a single list local observables acting on the same qubits, to allow Quimb to compute them all in a single contraction (not working for MPS ansatz). Also added argument in setup_backend_specifics to specify an optimizer. 2025-09-08 18:25:08 +02:00
Mattia Robbiano
1fa1730fb3 fix: prevent error when nshots=None. In that case frequencies and probabilities are set to None 2025-09-05 17:18:18 +02:00
pre-commit-ci[bot]
dff0f1cf8f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-05-29 13:27:37 +00:00
Mattia Robbiano
f9d1d0b6b0 refactor adapted to pull request comments 2025-05-29 15:25:44 +02:00
pre-commit-ci[bot]
5c249cb727 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-05-23 22:54:47 +00:00
Mattia Robbiano
f0828c946b refactor: standardized quimb interface with qmatchatea 2025-05-24 00:51:55 +02:00
MatteoRobbiati
30c3bba23a fix: change the order or the inheritance to impose the correct __mro__ 2025-02-10 11:18:09 +01:00
MatteoRobbiati
a5f7d1fb14 refactor: make QibotnBackend abstract and inherit both this and NumpyBackend in Qibotn concrete backends 2025-02-10 10:49:30 +01:00
pre-commit-ci[bot]
80bfc7e876 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-01-27 11:29:47 +00:00
MatteoRobbiati
773196fb2f refactor: constructing an abstract QiboTN backend and adapt quimb and cutensornet 2025-01-27 12:26:30 +01:00
vinitha-balachandran
628160c79b Fix in mps_enabled settings 2024-03-07 15:14:09 +08:00
vinitha-balachandran
16aef2b3f2 Minor fix to docstring in quimb.py 2024-03-04 16:12:50 +08:00
vinitha-balachandran
db315d5a48 Adding docstring to quimb.py and eval_qu.py 2024-03-04 14:35:15 +08:00
vinitha-balachandran
de92060180 Adding feature to pass MPS parameters in quimb 2024-02-23 14:48:30 +08:00
vinitha-balachandran
151a5a51a1 Change output to QuantumState class for quimb backend 2024-02-22 18:11:48 +08:00
Alessandro Candido
736a8123ca fix: Fix outdated imports 2024-02-15 17:42:22 +01:00
pre-commit-ci[bot]
6b3c26b934 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-15 12:22:45 +08:00
vinitha-balachandran
853e67a668 renaming cpu to quimb 2024-02-15 12:22:45 +08:00