Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
niccololaurora committed Nov 20, 2024
2 parents 9879ecd + 69b8f12 commit f6163a2
Show file tree
Hide file tree
Showing 13 changed files with 570 additions and 964 deletions.
100 changes: 0 additions & 100 deletions exercise.py

This file was deleted.

165 changes: 124 additions & 41 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ packages = [{ include = "qiboml", from = "src" }]
python = ">=3.9,<3.13"
numpy = "^1.26.4"
keras = { version = "^3.0.0", optional = true }
tensorflow = { version = "^2.16.1", markers = "sys_platform == 'linux' or sys_platform == 'darwin'", optional = true }
tensorflow = { version = "^2.16.1", markers = "sys_platform == 'linux' or sys_platform == 'darwin'"}
# TODO: the marker is a temporary solution due to the lack of the tensorflow-io 0.32.0's wheels for Windows, this package is one of
# the tensorflow requirements
torch = { version = "^2.3.1", optional = true }
torch = { version = "^2.3.1"}
qibo = {git="https://github.com/qiboteam/qibo"}
jax = "^0.4.25"
jaxlib = "^0.4.25"
Expand All @@ -46,11 +46,10 @@ pdbpp = "^0.10.3"
optional = true

[tool.poetry.group.tests.dependencies]
torch = "^2.3.1"
tensorflow = { version = "^2.16.1", markers = "sys_platform == 'linux'" }
pytest = "^7.2.1"
pylint = "3.1.0"
pytest-cov = "4.0.0"
qibojit = "^0.1.7"

[tool.poetry.group.benchmark.dependencies]
pytest-benchmark = { version = "^4.0.0", extras = ["histogram"] }
Expand Down
4 changes: 2 additions & 2 deletions src/qiboml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
try:
from tensorflow import Tensor as tf_tensor

from qiboml.models import keras
from qiboml.interfaces import keras

ndarray = Union[ndarray, tf_tensor]
except ImportError: # pragma: no cover
Expand All @@ -21,7 +21,7 @@
try:
from torch import Tensor as pt_tensor

from qiboml.models import pytorch
from qiboml.interfaces import pytorch

ndarray = Union[ndarray, pt_tensor]
except ImportError: # pragma: no cover
Expand Down
File renamed without changes.
Loading

0 comments on commit f6163a2

Please sign in to comment.