Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to latest Qiskit version #185

Merged
merged 6 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/cibuildwheel@v2.16
- 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