From adbcb5b3c59893c6f7d05493818a20d12b409715 Mon Sep 17 00:00:00 2001 From: Lukas Burgholzer Date: Mon, 3 Jun 2024 14:42:00 +0200 Subject: [PATCH] Apply suggestions from code review --- .readthedocs.yaml | 2 +- docs/References.rst | 2 +- docs/index.rst | 2 +- pyproject.toml | 2 -- src/mqt/qao/solvers.py | 8 ++++---- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 70bdcc5..20ae190 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -14,7 +14,7 @@ build: - (git --no-pager log --pretty="tformat:%s -- %b" -1 | grep -viq "skip ci") || exit 183 # Skip docs build if there are no changes related to docs - | - if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- docs/ .readthedocs.yaml src/mqt/ .github/contributing* .github/workflows/support*; + if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- docs/ .readthedocs.yaml src/mqt/ .github/contributing* .github/support*; then exit 183; fi diff --git a/docs/References.rst b/docs/References.rst index 3e01e37..2a446d8 100644 --- a/docs/References.rst +++ b/docs/References.rst @@ -1,6 +1,6 @@ References ========== -If you use *MQT Quantum Auto Optimizer* in your work, we would appreciate if you cited :cite:labelpar:`quetschlich2023mqtpredictor` (which subsumes :cite:labelpar:`volpe2024towards`). +If you use *MQT Quantum Auto Optimizer* in your work, we would appreciate if you cited :cite:labelpar:`volpe2024towards`. .. bibliography:: diff --git a/docs/index.rst b/docs/index.rst index 3403595..b6ee8c4 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,7 +1,7 @@ Welcome to MQT Quantum Auto Optimizer's documentation! ========================================= -MQT Quantum Auto Optimizer is a tool for automatic framework to assist users in utilizing quantum solvers for optimization tasks while preserving interfaces that closely resemble conventional optimization practices as part of the `Munich Quantum Toolkit `_ (*MQT*) by the `Chair for Design Automation `_ at the `Technical University of Munich `_. +MQT Quantum Auto Optimizer is a tool for automatic framework to assist users in utilizing quantum solvers for optimization tasks while preserving interfaces that closely resemble conventional optimization practices and is developed as part of the `Munich Quantum Toolkit `_ (*MQT*) by the `Chair for Design Automation `_ at the `Technical University of Munich `_. From a user's perspective, the framework is used as follows: diff --git a/pyproject.toml b/pyproject.toml index de33ca7..e13bb21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,8 +2,6 @@ requires = [ "setuptools>=66.1", "setuptools_scm>=8.1", - "wheel", - "cython", ] build-backend = "setuptools.build_meta" diff --git a/src/mqt/qao/solvers.py b/src/mqt/qao/solvers.py index 1aa79f5..85d59e8 100644 --- a/src/mqt/qao/solvers.py +++ b/src/mqt/qao/solvers.py @@ -1068,7 +1068,7 @@ def show_cumulative( rc("text", usetex=True) plt.rc("text", usetex=True) if label: - _n, _bins, _patches = plt.hist( + plt.hist( self.energies, cumulative=True, histtype="step", @@ -1077,17 +1077,17 @@ def show_cumulative( label=r"\textit{" + label + "}", ) else: - _n, _bins, _patches = plt.hist(self.energies, cumulative=True, histtype="step", linewidth=2, bins=100) + plt.hist(self.energies, cumulative=True, histtype="step", linewidth=2, bins=100) plt.title(r"\textbf{Cumulative distribution}", fontsize=20) plt.xlabel(r"\textit{Energy}", fontsize=20) plt.ylabel(r"\textit{occurrence}", fontsize=20) else: if label: - _n, _bins, _patches = plt.hist( + plt.hist( self.energies, cumulative=True, histtype="step", linewidth=2, bins=100, label=label ) else: - _n, _bins, _patches = plt.hist(self.energies, cumulative=True, histtype="step", linewidth=2, bins=100) + plt.hist(self.energies, cumulative=True, histtype="step", linewidth=2, bins=100) plt.title("Cumulative distribution", fontsize=20) plt.xlabel("Energy", fontsize=20) plt.ylabel("occurrence", fontsize=20)