Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements the structure of a general qiboml model #20

Merged
merged 100 commits into from
Nov 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
420ac26
feat: sketched the general structure of a qml model
BrunoLiegiBastonLiegi May 14, 2024
7e828ff
fix: removed cache files
BrunoLiegiBastonLiegi May 14, 2024
0e8656b
feat: implemented some sample encoding, decoding and ansatz layers
BrunoLiegiBastonLiegi May 16, 2024
2c79d18
fix: small modifications to layers
BrunoLiegiBastonLiegi Jun 3, 2024
e015465
feat: added phase encoding and more examples + drafted torch interface
BrunoLiegiBastonLiegi Jun 3, 2024
12c53e8
Update src/qiboml/models/abstract.py
BrunoLiegiBastonLiegi Jun 5, 2024
aa38656
Update src/qiboml/models/abstract.py
BrunoLiegiBastonLiegi Jun 5, 2024
06d4a16
feat: drafted a torch module factory
BrunoLiegiBastonLiegi Jun 12, 2024
a6ac851
feat: minor refinements to the torch factory
BrunoLiegiBastonLiegi Jun 13, 2024
3c09554
feat: drafted keras factory
BrunoLiegiBastonLiegi Jun 13, 2024
82a7079
feat: added pytorch tf tutorials
BrunoLiegiBastonLiegi Jun 13, 2024
ddec82a
fix: removed cache files
BrunoLiegiBastonLiegi Jun 13, 2024
10f533b
fix: minor fixes to keras interface
BrunoLiegiBastonLiegi Jun 14, 2024
76a2b2b
feat: implemented keras Model
BrunoLiegiBastonLiegi Jun 20, 2024
86969bd
fix: finally made keras interface working
BrunoLiegiBastonLiegi Jul 7, 2024
e10ffe6
feat: implemented QuantumModel for torch as well
BrunoLiegiBastonLiegi Jul 7, 2024
5ab8583
test: started implementing tests
BrunoLiegiBastonLiegi Jul 12, 2024
6aeaa1b
fix: various fixes + further tests
BrunoLiegiBastonLiegi Jul 16, 2024
3f166e3
fix: various fixes
BrunoLiegiBastonLiegi Jul 17, 2024
8fff5b8
build: added test dependencies
BrunoLiegiBastonLiegi Jul 17, 2024
c27cfdf
build: changed poetry rules
BrunoLiegiBastonLiegi Jul 17, 2024
542f64a
test: added backend and frontend fixtures
BrunoLiegiBastonLiegi Jul 17, 2024
c9e48b8
build: lock update
BrunoLiegiBastonLiegi Jul 17, 2024
d69b130
fix: disabled pylint check
BrunoLiegiBastonLiegi Jul 17, 2024
2e0c1bd
fix: some fixes
BrunoLiegiBastonLiegi Jul 17, 2024
42c0a1b
fix: small fix to expectation layer
BrunoLiegiBastonLiegi Jul 17, 2024
87ea094
fix: fixed exp layer tests and commented amp encoding
BrunoLiegiBastonLiegi Jul 17, 2024
474ad93
fix: small fixes to test_models.py
BrunoLiegiBastonLiegi Jul 17, 2024
ce108f9
test: testing expecation from samples as well
BrunoLiegiBastonLiegi Jul 18, 2024
2469037
fix: test fix
BrunoLiegiBastonLiegi Jul 22, 2024
7b6b3a2
fix: added qubit_map to expactation_from_samples + casting to double
BrunoLiegiBastonLiegi Jul 22, 2024
2a2d881
build: lock update
BrunoLiegiBastonLiegi Jul 22, 2024
1c049d1
fix: skipping tf test with windows
BrunoLiegiBastonLiegi Jul 22, 2024
9bffae7
fix: skipping tf test with windows
BrunoLiegiBastonLiegi Jul 22, 2024
13f6a31
fix: import sys
BrunoLiegiBastonLiegi Jul 22, 2024
c78f189
fix: commented tf import
BrunoLiegiBastonLiegi Jul 22, 2024
2ac5168
build: made tf optional
BrunoLiegiBastonLiegi Jul 22, 2024
6213bfe
build: added deploy workflow
BrunoLiegiBastonLiegi Jul 23, 2024
3dacd8d
build: changed python dependency
BrunoLiegiBastonLiegi Jul 23, 2024
7b6b7af
test: added runtest setup
BrunoLiegiBastonLiegi Jul 29, 2024
0313bb2
fix: various fixes to keras interface + testing both keras and torch …
BrunoLiegiBastonLiegi Jul 29, 2024
ffc37ea
fix: pylint disable import-error
BrunoLiegiBastonLiegi Jul 30, 2024
6916600
fix: removed some leftovers + moved tf import inside functions
BrunoLiegiBastonLiegi Jul 30, 2024
c0120ff
test: added tests for errors and other things
BrunoLiegiBastonLiegi Jul 30, 2024
8b8db4d
fix: added pytest_configure
BrunoLiegiBastonLiegi Jul 31, 2024
af8001e
fix: updated workflow
BrunoLiegiBastonLiegi Jul 31, 2024
71286eb
build: pylint update
BrunoLiegiBastonLiegi Jul 31, 2024
59aadf7
build: updated pytest packages and removed pytest-env
BrunoLiegiBastonLiegi Jul 31, 2024
26944a6
build: merge main, replaced numpy backend with jax backend for testing
BrunoLiegiBastonLiegi Aug 1, 2024
e9f3e32
fix: using qibo's pytorch and small fix to jax backend
BrunoLiegiBastonLiegi Aug 1, 2024
3e2a0e5
fix: rename issparse in pytorch backend
BrunoLiegiBastonLiegi Aug 1, 2024
bf116f0
fix: moved backend import in conftest
BrunoLiegiBastonLiegi Aug 1, 2024
eb39ca8
fix: removed keras and pytorch interface import from __init__.py
BrunoLiegiBastonLiegi Aug 3, 2024
2726853
fix: removed super().__post_init__ call
BrunoLiegiBastonLiegi Aug 3, 2024
ef91fc2
fix: added super().__init__() to interface __post_init__
BrunoLiegiBastonLiegi Aug 3, 2024
a610cf4
fix: fixed seed of random_clifford in test_decoding
BrunoLiegiBastonLiegi Aug 3, 2024
606cbb9
fix: added analytic argument exp layer in test_models_decoding.py
BrunoLiegiBastonLiegi Aug 3, 2024
a44942e
fix: trying to mitigate numerical instability
BrunoLiegiBastonLiegi Aug 3, 2024
97ef336
fix: fix to test exp layer
BrunoLiegiBastonLiegi Aug 6, 2024
e516fb5
fix: small improvements to coverage
BrunoLiegiBastonLiegi Aug 6, 2024
87d0f02
feat: added the qiboml.ndarray dtype and fixed various type hints
BrunoLiegiBastonLiegi Aug 23, 2024
bd7d1a0
fix: pylint disable for keras import
BrunoLiegiBastonLiegi Aug 23, 2024
f1f43fd
fix: using the parameters property when needed
BrunoLiegiBastonLiegi Aug 28, 2024
6820b25
fix: removed cache files
BrunoLiegiBastonLiegi Aug 28, 2024
c0fd516
fix: replacing c() with backend.execute
BrunoLiegiBastonLiegi Aug 28, 2024
51037fd
build: lock update
BrunoLiegiBastonLiegi Sep 3, 2024
a09f9b2
feat: drafted a compatible PSR and the custom pytorch autograd
BrunoLiegiBastonLiegi Sep 4, 2024
ac117d3
feat: various updates to autograd for torch
BrunoLiegiBastonLiegi Sep 5, 2024
6bd798b
fix: loss.backward() runs without errors, gradients to be tested...
BrunoLiegiBastonLiegi Sep 6, 2024
bdd803d
fix: update
BrunoLiegiBastonLiegi Sep 10, 2024
f0c8455
feat: random things that don't work anyway...
BrunoLiegiBastonLiegi Sep 11, 2024
0857d1e
feat: various changes to fix gradient flow
BrunoLiegiBastonLiegi Sep 26, 2024
1b6ee4a
fix: finally the parameters are updating with pytorch
BrunoLiegiBastonLiegi Sep 27, 2024
e1fd300
feat: started introducing backpropagation in tests
BrunoLiegiBastonLiegi Sep 27, 2024
8f14b37
feat: added backprop tests to to test_models_interfaces
BrunoLiegiBastonLiegi Sep 30, 2024
11b54ff
feat: trying out the non-layer approach
BrunoLiegiBastonLiegi Oct 3, 2024
a4f6b32
fix: updated keras interface
BrunoLiegiBastonLiegi Oct 4, 2024
9f4b4ac
feat: reimplemented some layers under the new schema
BrunoLiegiBastonLiegi Oct 11, 2024
44f76dd
feat: some cleanup
BrunoLiegiBastonLiegi Oct 11, 2024
5d2af1a
feat: working on jax differentiation
BrunoLiegiBastonLiegi Oct 11, 2024
9c115d7
feat: working on jax differentiation
BrunoLiegiBastonLiegi Oct 11, 2024
6b5769b
feat: still working on jax differentiation...
BrunoLiegiBastonLiegi Oct 11, 2024
a42a9d8
fix: small fix to jax differentiation
BrunoLiegiBastonLiegi Oct 14, 2024
2ec6606
fix: some fixes to tests and jax differentiation
BrunoLiegiBastonLiegi Oct 18, 2024
b3a94b2
feat: improvement to jax differentiation
BrunoLiegiBastonLiegi Oct 20, 2024
40ba22c
fix: fix integration of jax differentiation and pytorch interface, ha…
BrunoLiegiBastonLiegi Oct 21, 2024
bb5543e
fix: splitted jacobian with and without gradients
BrunoLiegiBastonLiegi Oct 21, 2024
a56a671
fix: splitted jacobian with and without gradients
BrunoLiegiBastonLiegi Oct 21, 2024
123f053
fix: some cleanup
BrunoLiegiBastonLiegi Oct 22, 2024
e4e62c1
fix: fixed grad shape in QuantumModelAutograd.backward
BrunoLiegiBastonLiegi Oct 22, 2024
f6510f0
fix: using einsum in backward
BrunoLiegiBastonLiegi Oct 22, 2024
d01ff34
fix: updated shape in test state decoding
BrunoLiegiBastonLiegi Oct 22, 2024
e57a0ec
fix: small fix + found a problem
BrunoLiegiBastonLiegi Oct 23, 2024
1118ca5
fix: fixing test seed
BrunoLiegiBastonLiegi Oct 28, 2024
920889f
fix: replaced rz with ry in phase encoding
BrunoLiegiBastonLiegi Oct 28, 2024
f96e6ff
Merge pull request #37 from qiboteam/pytorch_autodiff
BrunoLiegiBastonLiegi Oct 28, 2024
e328f44
build: merge main
BrunoLiegiBastonLiegi Oct 28, 2024
2f7d9c2
fix: fix to test metabackend load
BrunoLiegiBastonLiegi Oct 28, 2024
3dc291e
fix: ignoring cov
BrunoLiegiBastonLiegi Oct 28, 2024
4bb6a5c
build: merge main
BrunoLiegiBastonLiegi Nov 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: pylint disable for keras import
  • Loading branch information
BrunoLiegiBastonLiegi committed Aug 23, 2024
commit bd7d1a02341cb8f6282e0b3fb79055f7e8cfc13e
2 changes: 1 addition & 1 deletion src/qiboml/models/keras.py
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@

import numpy as np
import tensorflow as tf # pylint: disable=import-error
from keras.layers import Layer
from keras.layers import Layer # pylint: disable=import-error, no-name-in-module
from qibo.backends import Backend
from qibo.config import raise_error