Skip to content

Commit

Permalink
Adapt to latest Qiskit version (#185)
Browse files Browse the repository at this point in the history
## Description

Fixes updates to latest Qiskit version, see
cda-tum/mqt-core#471
## 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.

---------

Co-authored-by: Lukas Burgholzer <[email protected]>
  • Loading branch information
lucasberent and burgholzer authored Nov 8, 2023
1 parent f69a4e8 commit ea440ad
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,19 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install flint
run: brew install flint
- name: Setup ccache
uses: Chocobo1/setup-ccache-action@v1
with:
prepend_symlinks_to_path: false
override_cache_key: c++-tests-macos-latest
- name: Install Ninja
run: pipx install ninja
- if: runner.os == 'macOS'
name: Install flint
run: |
brew install gmp mpfr ntl
git clone --branch v2.9.0 --depth 1 https://github.com/flintlib/flint2.git
cd flint2 && ./configure && make -j 3 && make install
- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,19 @@ jobs:
with:
fetch-depth: 0
submodules: recursive
- if: runner.os == 'macOS'
name: Install flint
run: brew install flint
- if: matrix.runs-on != 'ubuntu-latest'
name: Setup ccache
uses: Chocobo1/setup-ccache-action@v1
with:
prepend_symlinks_to_path: false
windows_compile_environment: msvc
override_cache_key: wheels-${{ matrix.runs-on }}
- if: runner.os == 'macOS'
name: Install flint
run: |
brew install gmp mpfr ntl
git clone --branch v2.9.0 --depth 1 https://github.com/flintlib/flint2.git
cd flint2 && ./configure && make -j 3 && make install
- name: Build wheels
uses: pypa/[email protected]
- name: Verify clean directory
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ jobs:
matrix:
runs-on: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
flint-inst-cmd: [sudo apt-get install libflint-dev]
include:
- runs-on: macos-latest
flint-inst-cmd: brew install flint
python-version: 3.8
- runs-on: macos-latest
flint-inst-cmd: brew install flint
python-version: 3.11
steps:
- uses: actions/checkout@v4
Expand All @@ -47,8 +44,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
run: ${{ matrix.flint-inst-cmd }}
- name: Install flint (Linux)
if: matrix.runs-on == 'ubuntu-latest'
run: sudo apt-get install libflint-dev
- name: Install flint (macOS)
if: matrix.runs-on == 'macos-latest'
run: |
brew install gmp mpfr ntl
git clone --branch v2.9.0 --depth 1 https://github.com/flintlib/flint2.git
cd flint2 && ./configure && make -j 3 && make install
- name: Set up mold as linker (Linux only)
uses: rui314/setup-mold@v1
- name: Test on 🐍 ${{ matrix.python-version }}
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ filterwarnings = [
"error",
"ignore:pkg_resources.*:DeprecationWarning:",
"ignore:.*qiskit.__qiskit_version__.*:DeprecationWarning:qiskit:",
"ignore:.*qiskit.utils.algorithm_globals.QiskitAlgorithmGlobals*:DeprecationWarning:qiskit",
"ignore:.*Building a flow controller with keyword arguments is going to be deprecated*:PendingDeprecationWarning:qiskit",
"ignore:.*qiskit.extensions module is pending deprecation*:PendingDeprecationWarning:qiskit",
]

[tool.coverage]
Expand Down

0 comments on commit ea440ad

Please sign in to comment.