-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from Fujitsu-UTokyo-QDD/develop
QDD v0.2.0
- Loading branch information
Showing
46 changed files
with
1,887 additions
and
3,180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Publish Python distribution to PyPI | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
jobs: | ||
build: | ||
name: Build distribution | ||
runs-on: ubuntu-22.04 | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- python-version: '3.8' | ||
python-version-sub: '38' | ||
- python-version: '3.9' | ||
python-version-sub: '39' | ||
- python-version: '3.10' | ||
python-version-sub: '310' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Build by cibuildwheel | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
python-version: ${{ matrix.python-version }} | ||
# Modify as needed, you may need to adjust this line according to your requirements | ||
CIBW_BUILD: 'cp${{ matrix.python-version-sub }}-manylinux_x86_64' | ||
CIBW_BEFORE_BUILD: "cmake . -DPYTHON_EXECUTABLE=/usr/local/bin/python${{ matrix.python-version }} -DCMAKE_BUILD_TYPE=Release && cmake --build . -j" | ||
|
||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: ./wheelhouse/*.whl | ||
|
||
|
||
publish-to-pypi: | ||
name: Publish Python distribution to PyPI | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/qdd | ||
permissions: | ||
id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
steps: | ||
- name: Download all the dists | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
- name: Publish distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Contributing Guidelines | ||
|
||
This file explains how to contribute to our project. | ||
|
||
## Branch Management Rules (tentative) | ||
|
||
- We use three types of branches: `main`, `develop`, and `topic`. | ||
- `topic` branches are for specific features or bug fixes. | ||
- Naming convention for `topic` branches: | ||
- Branch for adding a feature: `feature/xxx` (e.g. `feature/add-circuit`) | ||
- Branch for fixing a bug: `bugfix/xxx` (e.g. `bugfix/py-version`) | ||
- Work is done on `topic` branches branched off from `develop`. | ||
- Pull requests from `topic` to `develop` is made. | ||
- When ready to release (e.g., bumping QDD version), pull requests from `develop` to `main` is made. | ||
|
||
## QDD Versioning | ||
|
||
- Manually Update Git Tag SemVer Based on Commits to `main`. | ||
- After a PR to `main` is merged, create a new tag from the release notes creation page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# ブランチ管理規則 | ||
|
||
このファイルは、このプロジェクトへのコミットの仕方を説明するものです。 | ||
|
||
## ブランチ管理ルール (暫定) | ||
|
||
- 3つの種類のブランチを使用します: `main`, `develop`, `topic`. | ||
- `topic` ブランチは、特定の機能やバグ修正用です。 | ||
- `topic` ブランチの命名規則: | ||
- 機能追加ブランチ:`feature/xxx` (e.g. `feature/add-circuit`) | ||
- バグ修正ブランチ:`bugfix/xxx` (e.g. `bugfix/py-version`) | ||
- 作業は、`develop` ブランチから分岐した `topic` ブランチで行います。 | ||
- `topic` から `develop` へのプルリクエストを作成してください。 | ||
- リリースの準備が整った場合(例: QDDのバージョンを上げる場合)、`develop` から `main` へのプルリクエストを作成してください。 | ||
|
||
## QDDのバージョニング方法 | ||
|
||
- `main` へのコミットの内容に応じてGit TagのSemVerを手動で更新します。 | ||
- `main` へのPRがマージされた後、release noteの作成画面から新しいタグを作成してください。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
## MPI | ||
You need to add some options. | ||
``` | ||
```sh | ||
$ CC=mpicc CXX=mpicxx Boost_DIR=/usr/lib/x86_64-linux-gnu/cmake cmake -B build -DCMAKE_BUILD_TYPE=Release -DisMPI=ON | ||
$ cmake --build build -j | ||
``` | ||
|
||
You can run the MPI programs as follows. | ||
``` | ||
```sh | ||
$ mpirun -np 4 ./build/test/mpt_test | ||
$ mpirun -np 4 ./build/test/mpi_test_grover 20 | ||
``` | ||
Currently, python bindings does NOT support MPI. | ||
Currently, python bindings does NOT support MPI. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.