Commit Graph

116 Commits

Author SHA1 Message Date
Matteo Robbiati
7632491fe1 fix: expval has a new name 2026-01-16 16:35:36 +01:00
Matteo Robbiati
fd175d43fe fix: platform name when using Quimb 2026-01-16 16:35:19 +01:00
BrunoLiegiBastonLiegi
828c86c0a8 feat: removed self.np references + dep and lock 2025-11-27 13:16:51 +01:00
pre-commit-ci[bot]
24f25d813c [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-11-13 08:45:53 +00:00
mattia-robbiano
d4ab3eba52 minor improvements to examples, documentation, internally used variable names 2025-11-13 10:45:32 +02:00
BrunoLiegiBastonLiegi
7ea8dc861b feat: changed backend generation mechanism + updated tutorial 2025-10-27 16:25:38 +01:00
BrunoLiegiBastonLiegi
b9fe861848 fix: small fix 2025-10-20 18:26:08 +02:00
Mattia Robbiano
29ab783cce chore: updated function name 2025-10-20 18:13:51 +03:00
BrunoLiegiBastonLiegi
789963312f merge upstream main 2025-10-02 16:43:08 +02:00
BrunoLiegiBastonLiegi
2787d45b41 fix: renamed cutoff 2025-10-01 17:48:05 +02:00
BrunoLiegiBastonLiegi
06079169ec fix: removed commented breakpoint 2025-10-01 16:26:48 +02:00
BrunoLiegiBastonLiegi
9328028ede fix: minor adjustments 2025-10-01 16:24:45 +02:00
Mattia Robbiano
3c3c5c0f5a in expectation function, building the circuti type depending on the value set by user 2025-09-30 18:10:49 +02:00
MatteoRobbiati
c2b11ce1e6 refactor: rm unused imports 2025-09-30 16:47:26 +02:00
MatteoRobbiati
a6d064c8f0 feat: setting bd when instantiating a quimb circuit 2025-09-30 16:45:39 +02:00
Mattia Robbiano
f8439a5b92 fix: backend/__init__ in MetaBackend contraction_optimizer variable set with the corresponding keyword 2025-09-29 16:48:32 +02:00
BrunoLiegiBastonLiegi
7de00e2c02 fix: setting simplify sequence = R 2025-09-24 17:24:42 +02:00
BrunoLiegiBastonLiegi
014f47967f fix: changed arg names 2025-09-24 13:23:51 +02:00
BrunoLiegiBastonLiegi
715d100136 fix: removed comments 2025-09-23 18:07:50 +02:00
BrunoLiegiBastonLiegi
ab10b13d9b feat: dynamically inheriting with quimb 2025-09-23 17:57:00 +02:00
BrunoLiegiBastonLiegi
2b5fca800c fix: some small corrections 2025-09-23 16:27:29 +02:00
Mattia Robbiano
1202091191 fixed issue with measure gates name and expectation function type hint 2025-09-23 01:44:44 +02:00
Mattia Robbiano
ec07b8ea86 refactored execute. The observable is now passed as lists of operators, coefficients and qubits. Implemented functions for handling conversion from Pauli string to quimb operator and coefficients. Fixed: error in parameters handing in expectation. Fixed GATE_MAP to match the common observables 2025-09-23 00:41:19 +02:00
Mattia Robbiano
271a44576d fixing parametrization flag and updating relevant test scripts 2025-09-20 17:00:07 +02:00
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
tankya2
65a04c32fa Make rank class attribute 2025-08-26 17:11:08 +08:00
tankya2
410a742cc3 Make runcard optional in init plus some refactoring 2025-08-22 15:41:03 +08:00
pre-commit-ci[bot]
872312d00b [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-08-13 11:29:51 +08:00
tankya2
4cb6edc013 Change to expectation calculation to accept hamiltonian object 2025-08-13 11:29:51 +08:00
pre-commit-ci[bot]
13d4c9c04f [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-08-13 11:29:51 +08:00
tankya2
9890a45fb4 Remove import quantum 2025-08-13 11:29:51 +08:00
pre-commit-ci[bot]
616446cecc [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-08-13 11:29:51 +08:00
tankya2
22a55281a5 Fix bug 2025-08-13 11:24:43 +08:00
MatteoRobbiati
f0b28d87c4 fix: remove runcard argument from qmatchatea backend and fix self.precision in the same backend 2025-07-30 10:05:45 +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
292d3573a6 feat: improve the configure_tn_simulation function so that we don't need to use external objects 2025-02-10 16:45:26 +01:00
MatteoRobbiati
bb76e2b64d refactor: rewrite the expectation method using Qibo built in features 2025-02-10 13:17:19 +01:00
Matteo Robbiati
afc6c5d196 Update src/qibotn/backends/qmatchatea.py
Co-authored-by: BrunoLiegiBastonLiegi <45011234+BrunoLiegiBastonLiegi@users.noreply.github.com>
2025-02-10 12:53:28 +01:00
MatteoRobbiati
309fdc996b fix: importing QmatchateaBackend inside proper condition in the __init__ file 2025-02-10 12:48:21 +01:00
MatteoRobbiati
97d2c79300 doc: improve docstrings related to TensorNetworkResult 2025-02-10 12:17:37 +01: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
Matteo Robbiati
72ba4165be Apply suggestions from code review
Co-authored-by: BrunoLiegiBastonLiegi <45011234+BrunoLiegiBastonLiegi@users.noreply.github.com>
2025-02-10 10:11:59 +01:00