Commit Graph

701 Commits

Author SHA1 Message Date
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
tankya2
304ae7a6a3 pytest for mpi function 2025-08-26 17:34:06 +08:00
pre-commit-ci[bot]
f2f84e79fd [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-08-26 09:23:25 +00:00
tankya2
65a04c32fa Make rank class attribute 2025-08-26 17:11:08 +08:00
tankya2
39dad0fd88 Fix bug on NCCL reduce. Need to change size to 2x for complex128 dtype 2025-08-26 17:10:39 +08:00
pre-commit-ci[bot]
cf0a539d3d [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-08-22 07:42:19 +00:00
tankya2
77c9cd9cd6 Rewrite test functions into higher level 2025-08-22 15:42:04 +08:00
tankya2
410a742cc3 Make runcard optional in init plus some refactoring 2025-08-22 15:41:03 +08:00
tankya2
791c5d2020 Temporary diasble qmatchatea as it is giving error 2025-08-22 15:39:35 +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
tankya2
106dfcb50e Add test for expectation and updates 2025-08-13 11:29:51 +08:00
pre-commit-ci[bot]
4b44b10d6b [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
ac396a35db Refactor to reduce repeating codes 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
84ec5cfdfe Remove redundant mem pool 2025-08-13 11:29:51 +08:00