From 7e03f0ab3cc7db11c2d51d98fb7e61f2f423d955 Mon Sep 17 00:00:00 2001 From: Lukas Burgholzer Date: Thu, 9 Nov 2023 12:15:30 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Adapt=20to=20latest=20Qiskit=20v?= =?UTF-8?q?ersion=20(#392)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description The newest Qiskit release introduced some new deprecations and, unfortunately, also some internal deprecation warnings that now surface in our tests and must be ignored. This PR adjusts MQT QMAP to these latest changes. ## Checklist: - [x] The pull request only contains commits that are related to it. - [x] I have added appropriate tests and documentation. - [x] I have made sure that all CI jobs on GitHub pass. - [x] The pull request introduces no new warnings and follows the project's style guidelines. --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 729f07046..c13475af2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -136,7 +136,13 @@ testpaths = ["test/python"] addopts = ["-ra", "--strict-markers", "--strict-config", "--showlocals"] log_cli_level = "INFO" xfail_strict = true -filterwarnings = ["error", 'ignore:Conversion.*to a scalar is deprecated.*:DeprecationWarning:qiskit:', 'ignore:.*qiskit.__qiskit_version__.*:DeprecationWarning:qiskit:'] +filterwarnings = [ + "error", + "ignore:Conversion.*to a scalar is deprecated.*:DeprecationWarning:qiskit:", + "ignore:.*qiskit.__qiskit_version__.*:DeprecationWarning:qiskit:", + "ignore:.*qiskit.utils.algorithm_globals.QiskitAlgorithmGlobals*:DeprecationWarning:qiskit", + "ignore:.*qiskit.extensions module is pending deprecation*:PendingDeprecationWarning:qiskit", +] [tool.coverage] run.source = ["mqt.qmap"]