Commit Graph

597 Commits

Author SHA1 Message Date
Mattia Robbiano
82fcffb1ad update notebook 2025-09-23 01:42:20 +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
386891ee1a updaged examples 2025-09-23 00:37:11 +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
641277c62b added tests for quimb backend 2025-09-09 12:47:37 +02:00
Mattia Robbiano
b7c26f5a2a added cotengra cash exclusion 2025-09-08 18:26:54 +02: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
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
MatteoRobbiati
374d7b3f8c chore: updating deps, expecially qmatchatea extras 2025-07-30 10:04:56 +02:00
Stefano Carrazza
84de79a892 Update pyproject.toml 2025-06-20 14:20:00 +02:00
Matteo Robbiati
9dd01163fa Merge pull request #99 from mattia-robbiano/quimb_backend_refactor
refactor: standardized quimb interface with qmatchatea
2025-05-29 15:49:05 +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
Stefano Carrazza
4a16d2fdc8 Merge pull request #100 from qiboteam/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-05-27 08:05:33 +08:00
pre-commit-ci[bot]
897abfc13c [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v3.19.1 → v3.20.0](https://github.com/asottile/pyupgrade/compare/v3.19.1...v3.20.0)
2025-05-26 20:23:51 +00: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
Stefano Carrazza
56d3c38cbf Update pyproject.toml 2025-04-23 07:21:49 -03:00
Stefano Carrazza
5db2dcbb9e Merge pull request #96 from qiboteam/deps
Update deps to support Python 3.13, Numpy 2.0 and Qmatchatea 1.4.3
2025-04-23 06:40:33 -03:00
Stefano Carrazza
bdf34283aa Merge pull request #95 from qiboteam/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-04-23 06:39:58 -03:00
MatteoRobbiati
52c5a5d5fc ci: include py 3.13 2025-04-22 11:06:23 +02:00
MatteoRobbiati
3b8a978a4c chore: updating dependencies to support qmatchatea 1.4.3 and align with cineca baseline 2025-04-10 16:29:27 +02:00
MatteoRobbiati
95092dd4da ci: rm python 3.9 and 3.10 from workflows 2025-04-10 16:28:38 +02:00
pre-commit-ci[bot]
7170968a58 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/pycqa/isort: 6.0.0 → 6.0.1](https://github.com/pycqa/isort/compare/6.0.0...6.0.1)
2025-03-03 21:01:41 +00:00
Stefano Carrazza
9a60bf4acb Update pyproject.toml 2025-02-17 12:37:17 +01:00
Stefano Carrazza
53b5823163 Merge pull request #92 from qiboteam/restore
Back to notebook in examples folder
2025-02-17 12:33:12 +01:00
Stefano Carrazza
80f787af35 disabling nbsphinx 2025-02-17 12:11:59 +01:00
MatteoRobbiati
af782efefc refactor: use direct link to notebook 2025-02-17 11:42:26 +01:00
MatteoRobbiati
3237be40c0 refactor: move notebook back to examples 2025-02-17 11:32:49 +01:00
MatteoRobbiati
84eb522a61 fix poetry lock 2025-02-17 11:28:38 +01:00
Stefano Carrazza
83a8de53f5 adding nbsphinx dep 2025-02-13 11:17:37 +08:00
Stefano Carrazza
07b874b3c8 Merge pull request #89 from qiboteam/matcha_intro
Add notebook about introduction to qmatchatea backend to docs
2025-02-13 09:47:57 +08:00
MatteoRobbiati
fdb1482cf2 docs: mv notebook file from examples to docs 2025-02-12 17:01:18 +01:00
MatteoRobbiati
7d4b3e4360 doc: add qmatchateam intro example to the docs 2025-02-12 14:49:56 +01:00
MatteoRobbiati
230c6ff617 docs: refactoring the qmatchatea intro notebook 2025-02-12 14:38:24 +01:00
Stefano Carrazza
8ae77ce803 updating poetry deps 2025-02-12 20:54:17 +08:00
Matteo Robbiati
c22385de0b Merge pull request #86 from qiboteam/matcha
implementing the Quantum Matcha Tea backend
2025-02-12 13:27:24 +01: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
5b63877876 refactor: adapt the example to the new expectation function 2025-02-10 13:20:35 +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
Matteo Robbiati
4683c607ed Update src/qibotn/result.py
Co-authored-by: BrunoLiegiBastonLiegi <45011234+BrunoLiegiBastonLiegi@users.noreply.github.com>
2025-02-10 12:50:04 +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