Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
burgholzer authored Jun 3, 2024
1 parent f79f836 commit adbcb5b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/References.rst
Original file line number Diff line number Diff line change
@@ -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::
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -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 <https://mqt.readthedocs.io>`_ (*MQT*) by the `Chair for Design Automation <https://www.cda.cit.tum.de/>`_ at the `Technical University of Munich <https://www.tum.de>`_.
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 <https://mqt.readthedocs.io>`_ (*MQT*) by the `Chair for Design Automation <https://www.cda.cit.tum.de/>`_ at the `Technical University of Munich <https://www.tum.de>`_.

From a user's perspective, the framework is used as follows:

Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
requires = [
"setuptools>=66.1",
"setuptools_scm>=8.1",
"wheel",
"cython",
]
build-backend = "setuptools.build_meta"

Expand Down
8 changes: 4 additions & 4 deletions src/mqt/qao/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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)
Expand Down

0 comments on commit adbcb5b

Please sign in to comment.