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

🔖 v0.6.3-rc2 #50

Merged
merged 28 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
413f7d6
:construction: testing clang-tidy-17 checks
JoshuaLau0220 Dec 10, 2023
9344a34
:art: fix linting in clang-tidy-17
JoshuaLau0220 Dec 11, 2023
91e51dc
:bar_chart: delete unstable tab related dofiles
JoshuaLau0220 Dec 11, 2023
747a171
:bar_chart: changed RUN_TESTS script to bash because python subproces…
JoshuaLau0220 Dec 11, 2023
e7552b3
:bug: explicitly check if parallel is installed for scripts
JoshuaLau0220 Dec 11, 2023
04b02ad
:fire: delete python-based RUN_TESTS scripts
JoshuaLau0220 Dec 11, 2023
0fca210
:bar_chart: updated testcases
JoshuaLau0220 Dec 11, 2023
b718454
🔀 Merge pull request #41 from DVLab-NTU/lint/clang-tidy-17
JoshuaLau0220 Dec 11, 2023
3a0ec59
:bug: trivial-optimization removes non-matching cz gates
JoshuaLau0220 Dec 25, 2023
169892d
🔀 Merge pull request #45 from DVLab-NTU/bug/trivial-optimization-wron…
JoshuaLau0220 Dec 25, 2023
a145678
🐛 Fix filter cnots by checking matched control and target qubits (#458)
chinyi0523 Dec 26, 2023
449785c
🐛 Fix starting point in back tracking Gaussian Elimination procedure …
chinyi0523 Dec 26, 2023
fc29018
🐛 Fix initializing the extractor by not removing phase nodes
chinyi0523 Dec 26, 2023
c241351
🎨 Lint
chinyi0523 Dec 26, 2023
e2b3b7b
🔀 Merge pull request #47 from DVLab-NTU/hotfix-boolean-matrix
chinyi0523 Dec 26, 2023
3ee605e
:children_crossing: add guards for tensor calculation
JoshuaLau0220 Dec 26, 2023
96fc253
:racehorse: improve make lint speed
JoshuaLau0220 Dec 26, 2023
6a264e8
Merge pull request #48 from DVLab-NTU/sanity/zx2ts-safely-abort
JoshuaLau0220 Dec 26, 2023
7abc506
:bug: qsyn does not guard unrecognized options
JoshuaLau0220 Dec 26, 2023
2b7d3dc
:bug: fix #42
JoshuaLau0220 Dec 26, 2023
de48870
:bug: qsyn panics on printing QCirs with SWAP gates
JoshuaLau0220 Dec 26, 2023
c6b9f88
🔀 Merge branch 'bug/#42' of https://github.com/DVLab-NTU/qsyn into bu…
JoshuaLau0220 Dec 26, 2023
434ccf1
🔀 Merge pull request #49 from DVLab-NTU/bug/#42
JoshuaLau0220 Dec 26, 2023
46cf3cd
🐳 remove unnecessary GNU parallel installation
JoshuaLau0220 Dec 26, 2023
c304d1f
[no ci] Merge branch 'develop' of https://github.com/DVLab-NTU/qsyn i…
JoshuaLau0220 Dec 26, 2023
add47f7
🐛 Break cases
chinyi0523 Dec 26, 2023
50b1982
📊 Add optimization flow testcase
chinyi0523 Dec 26, 2023
4a4dc4a
Merge branch 'develop' of https://github.com/DVLab-NTU/qsyn into develop
chinyi0523 Dec 26, 2023
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
3 changes: 2 additions & 1 deletion docker/clang-test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM dvlab/qsyn-env:latest

RUN dnf install -y \
diffutils \
patch
patch \
parallel

COPY ./docker/test-entrypoint.sh /app/entrypoint.sh

Expand Down
3 changes: 2 additions & 1 deletion docker/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ FROM fedora:38 AS runner
RUN dnf install -y \
lapack \
openblas-serial \
libomp
libomp \
parallel

COPY --from=builder /app/build/qsyn /usr/local/bin/qsyn

Expand Down
3 changes: 2 additions & 1 deletion docker/env.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ RUN dnf install -y \
clang \
cmake \
lapack-devel \
openblas-devel
openblas-devel \
parallel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed in env.Dockerfile, only direct dependencies should be here

3 changes: 2 additions & 1 deletion docker/gcc-test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ FROM dvlab/qsyn-env:latest

RUN dnf install -y \
diffutils \
patch
patch \
parallel

COPY ./docker/test-entrypoint.sh /app/entrypoint.sh

Expand Down
3 changes: 2 additions & 1 deletion docker/prod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ FROM fedora:38 AS runner
RUN dnf install -y \
lapack \
openblas-serial \
libomp
libomp \
parallel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same, don't need parallel


COPY --from=builder /app/build/qsyn /usr/local/bin/qsyn

Expand Down
13 changes: 11 additions & 2 deletions scripts/LINT
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
#!/usr/bin/env bash

if [ ! -x "$(command -v parallel)" ]; then
echo "Error: GNU parallel is not installed!!"
exit 1
fi

format_one() {
clang-format -i "$1"
}
export -f format_one

lint_one() {
clang-tidy "$1" --quiet 2>&1 | grep -v "warnings generated" | grep -v "warning generated"
clang-tidy -p build "$1" --quiet 2>&1 | grep -v -E "warnings? generated"
}
export -f lint_one

FILES=$(find ./src -regex '.*\.[ch]pp' -type f)
CPPS=$(find ./src -regex '.*\.cpp' -type f)

# Format all files first to avoid linting errors
echo "Formatting files..."
parallel -j"$(nproc)" format_one ::: "$FILES"
echo "Generating compile commands..."
cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=1 > /dev/null
echo "Linting files..."
parallel -j"$(nproc)" lint_one ::: "$FILES"
parallel -j"$(nproc)" lint_one ::: "$CPPS"
echo "Done"
Loading
Loading