Commit Graph

716 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
155f9e07a1 [pre-commit.ci] pre-commit autoupdate
updates:
- https://github.com/psf/blackhttps://github.com/psf/black-pre-commit-mirror
- [github.com/pycqa/isort: 6.0.1 → 7.0.0](https://github.com/pycqa/isort/compare/6.0.1...7.0.0)
- [github.com/asottile/pyupgrade: v3.20.0 → v3.21.0](https://github.com/asottile/pyupgrade/compare/v3.20.0...v3.21.0)
2025-10-13 21:29:10 +00:00
BrunoLiegiBastonLiegi
9eeee4a95f Merge pull request #112 from mattia-robbiano/main
Quimb backend: refactor and implementation of expectation function
2025-10-06 09:34:20 +02:00
BrunoLiegiBastonLiegi
789963312f merge upstream main 2025-10-02 16:43:08 +02:00
Mattia Robbiano
bc5320b831 Merge pull request #4 from mattia-robbiano/fixes
Fixes
2025-10-01 18:31:19 +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
Mattia Robbiano
3bddab62e9 Merge pull request #3 from mattia-robbiano/set_max_bd
Setting max bond dimension when instantiating a Quimb circuit
2025-09-30 16:50:15 +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
Mattia Robbiano
8d97fa3d07 Merge pull request #2 from mattia-robbiano/exp_corrections
Dynamic Inheritance
2025-09-23 18:20:05 +02:00
BrunoLiegiBastonLiegi
9a06926105 merge main 2025-09-23 18:19:42 +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
Alessandro Candido
a632c32a65 Merge pull request #110 from qiboteam/pre-commit-ci-update-config 2025-09-23 16:51:23 +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
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
pre-commit-ci[bot]
44ce1d6d17 [pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 25.1.0 → 25.9.0](https://github.com/psf/black/compare/25.1.0...25.9.0)
2025-09-22 21:32:59 +00: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
Alessandro Candido
2f7d7b99ce Merge pull request #108 from qiboteam/dependabot/pip/urllib3-2.5.0 2025-09-10 08:49:54 +02:00
Alessandro Candido
81a0d4e168 Merge pull request #109 from qiboteam/dependabot/pip/requests-2.32.4 2025-09-10 08:49:45 +02:00
Alessandro Candido
6b0d289323 Merge pull request #107 from qiboteam/dependabot/pip/setuptools-78.1.1 2025-09-10 08:49:24 +02:00
dependabot[bot]
8cbad55010 chore(deps-dev): bump requests from 2.32.3 to 2.32.4
Bumps [requests](https://github.com/psf/requests) from 2.32.3 to 2.32.4.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.32.3...v2.32.4)

---
updated-dependencies:
- dependency-name: requests
  dependency-version: 2.32.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-10 05:48:34 +00:00
dependabot[bot]
2a89968d92 chore(deps-dev): bump urllib3 from 2.3.0 to 2.5.0
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.3.0 to 2.5.0.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.3.0...2.5.0)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-version: 2.5.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-10 05:45:49 +00:00
dependabot[bot]
5165e787e6 chore(deps): bump setuptools from 78.1.0 to 78.1.1
Bumps [setuptools](https://github.com/pypa/setuptools) from 78.1.0 to 78.1.1.
- [Release notes](https://github.com/pypa/setuptools/releases)
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/setuptools/compare/v78.1.0...v78.1.1)

---
updated-dependencies:
- dependency-name: setuptools
  dependency-version: 78.1.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-10 05:37:43 +00: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
Andy Tan
0bfe912844 Merge pull request #74 from qiboteam/update_tn
Update tn
2025-09-08 10:13:43 +08: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
a5b266ed46 clean up reduce_result: minor refactor 2025-09-05 14:56:40 +08:00
tankya2
17f7ec3431 Update variable naming 2025-09-04 10:35:27 +08:00
pre-commit-ci[bot]
256138d875 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-09-03 02:18:44 +00:00
tankya2
b72f6afe49 Make tolerance a variable 2025-09-03 10:18:13 +08:00
tankya2
99fbabb9c8 Make subtest description more self-explanatory 2025-09-03 10:06:39 +08:00
tankya2
6e164b57c5 Remove debugging printout 2025-09-03 09:27:07 +08:00
Renato M S Farias
9ba74b58a0 Merge pull request #102 from qiboteam/security_update
Update `ipython` version
2025-08-29 06:17:47 +00:00
pre-commit-ci[bot]
b654e81776 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-08-27 03:08:36 +00:00
tankya2
58721ca974 Add pytest gpu mark 2025-08-27 11:08:16 +08:00
tankya2
947a2a1583 Remove debug print 2025-08-26 17:40:50 +08:00