From a297b28e66790be773635be4ebe094031f067e24 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Feb 2025 00:24:48 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 24.10.0 → 25.1.0](https://github.com/psf/black/compare/24.10.0...25.1.0) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a06d469f07..89908035cd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: check-toml - id: debug-statements - repo: https://github.com/psf/black - rev: 24.10.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/pycqa/isort From 46a25b78c7c4029a3f1fd08d00e5f6c4600ed9bf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 4 Feb 2025 00:25:17 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/test_examples.py | 2 +- src/qibo/models/qcnn.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/test_examples.py b/examples/test_examples.py index 72cdd66037..85d7052bcd 100644 --- a/examples/test_examples.py +++ b/examples/test_examples.py @@ -248,7 +248,7 @@ def test_adiabatic_linear(nqubits, hfield, T, dt, solver, save=False): @pytest.mark.parametrize("nqubits,hfield,dt, params", [(4, 1, 1e-2, [1.0])]) @pytest.mark.parametrize("solver", ["exp"]) -@pytest.mark.parametrize("method", [("Powell")]) +@pytest.mark.parametrize("method", ["Powell"]) def test_adiabatic_optimize( nqubits, hfield, params, dt, solver, method, maxiter=None, save=False ): diff --git a/src/qibo/models/qcnn.py b/src/qibo/models/qcnn.py index 7cd4f7a955..9be6f0edd2 100644 --- a/src/qibo/models/qcnn.py +++ b/src/qibo/models/qcnn.py @@ -1,4 +1,4 @@ -""" Implement a Quantum Convolutional Neural Network (QCNN) for classification tasks. +"""Implement a Quantum Convolutional Neural Network (QCNN) for classification tasks. The QCNN model was originally proposed in: arXiv:1810.03787 _ for the identification of quantum phases.