diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7fc74013..ee4ed936 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -40,7 +40,12 @@ jobs: - name: Run autopep8 (fix PEP8 issues automatically) run: autopep8 --in-place --recursive --aggressive --max-line-length 120 -v . + - name: Clean the workspace + if: github.event_name == 'pull_request' + run: git reset --hard + - name: Commit changes if any + if: github.event_name == 'push' run: | git config --global user.name "GitHub Action" git config --global user.email "action@github.com" diff --git a/src/modules/applications/QML/__init__.py b/src/modules/applications/qml/__init__.py similarity index 100% rename from src/modules/applications/QML/__init__.py rename to src/modules/applications/qml/__init__.py diff --git a/src/modules/applications/qml/generative_modeling/mappings/LibraryPennylane.py b/src/modules/applications/qml/generative_modeling/mappings/LibraryPennylane.py index c87a82df..507b4751 100644 --- a/src/modules/applications/qml/generative_modeling/mappings/LibraryPennylane.py +++ b/src/modules/applications/qml/generative_modeling/mappings/LibraryPennylane.py @@ -12,10 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -from modules.applications.qml.generative_modeling.mappings.Library import Library -from modules.training.Inference import Inference -from modules.training.QGAN import QGAN -from modules.training.QCBM import QCBM from typing import Union import numpy as np @@ -23,6 +19,11 @@ from jax import numpy as jnp import jax +from modules.applications.qml.generative_modeling.mappings.Library import Library +from modules.training.Inference import Inference +from modules.training.QGAN import QGAN +from modules.training.QCBM import QCBM + jax.config.update("jax_enable_x64", True)