Commit Graph

287 Commits

Author SHA1 Message Date
Yang Liwei
aaee0bedbd Remove unused comments. 2025-11-26 17:45:19 +08:00
pre-commit-ci[bot]
3f3eae1df6 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-11-25 10:00:46 +00:00
Yang Liwei
c51057df3f Update poetry to using CUDA12, fix the paths in refactored cuquantum code. 2025-11-25 17:18:19 +08: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
a5b266ed46 clean up reduce_result: minor refactor 2025-09-05 14:56:40 +08:00
tankya2
6e164b57c5 Remove debugging printout 2025-09-03 09:27:07 +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
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]
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
yangliwei
9381ae6b88 Remove the unnecessary deletion because automatic deletion is implicitly already there at the function end 2025-08-13 11:29:51 +08:00
tankya2
17717ae37a Remove duplication 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
c3a42f8760 Format 2025-08-13 11:29:51 +08:00
tankya2
dda17d3ba6 Comment 2025-08-13 11:29:51 +08:00
tankya2
05cd1001ca Update dense vector tn nccl 2025-08-13 11:24:43 +08:00
tankya2
4cc59564cf Update dense_vector_tn_MPI 2025-08-13 11:24:43 +08:00
tankya2
ff034eb355 Update NCCL 2025-08-13 11:24:43 +08:00