Skip to content

Commit

Permalink
🚨 Adapt to latest Qiskit version (#392)
Browse files Browse the repository at this point in the history
## 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:

<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->

- [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.
  • Loading branch information
burgholzer authored Nov 9, 2023
1 parent b6aad60 commit 7e03f0a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 7e03f0a

Please sign in to comment.