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

[Infra] Use custom docker image in CI #35

Closed
wants to merge 93 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
6377bc9
constructors
jpmoutinho Oct 2, 2023
383c6f1
Digital decomposition, operations and Braket backend
Oct 2, 2023
15c475e
Add measurements.
RolandMacDoland Oct 2, 2023
cd533af
Merge branch 'main' into jm/constructors
jpmoutinho Oct 2, 2023
9c28a60
Merge pull request #11 from pasqal-io/jm/constructors
jpmoutinho Oct 2, 2023
0a63666
Merge pull request #12 from pasqal-io/md/contribution
madagra Oct 2, 2023
f2a491f
dominik files
dominikandreasseitz Oct 2, 2023
bae5688
pyqtorch; draw; models; transpile
nmheim Oct 2, 2023
e6835e9
Merge pull request #13 from pasqal-io/ds/dominik
dominikandreasseitz Oct 2, 2023
145ef6b
Added infrastructure and build files
Oct 2, 2023
b8ee23a
Cleanup
dominikandreasseitz Oct 2, 2023
943dece
block_to_tensor
dominikandreasseitz Oct 2, 2023
9192e8b
matrixblock
dominikandreasseitz Oct 2, 2023
bc48393
add utils.py file
Oct 2, 2023
c2b6b6f
new draw; more blocks
nmheim Oct 2, 2023
35163e5
Merge pull request #14 from pasqal-io/em/blocks_utils
Doomsk Oct 2, 2023
dd4e621
Add README. (#15)
RolandMacDoland Oct 2, 2023
cf5b3fb
remaining backends files
dominikandreasseitz Oct 2, 2023
560b3c2
Rg/add readme (#16)
RolandMacDoland Oct 2, 2023
1f1c65d
gpsr algorithm
vytautas-a Oct 2, 2023
73825cf
pulser backend
vytautas-a Oct 2, 2023
a85c79b
draw requirements; install instructions
nmheim Oct 2, 2023
c1c4461
Merge branch 'main' of github.com:pasqal-io/qadence
nmheim Oct 2, 2023
c36f97b
Remove refs to private repo.
RolandMacDoland Oct 2, 2023
d73b9a1
Create a coverage report as XML file.
RolandMacDoland Oct 2, 2023
7735a80
Added main utility modules
Oct 2, 2023
6d785c7
Added main utility modules
Oct 2, 2023
e87857c
Update pyproject.toml
jpmoutinho Oct 2, 2023
14ea1e5
added co-author
vytautas-a Oct 2, 2023
24120f7
Added abstract block
Oct 2, 2023
a147753
Merge branch 'main' of github.com:pasqal-io/qadence
dominikandreasseitz Oct 2, 2023
5469129
Add pytorchwrapper and embedding.
dominikandreasseitz Oct 2, 2023
9599fd5
Add errors module. (#17)
RolandMacDoland Oct 2, 2023
5223ce7
Lint on pushes to main.
RolandMacDoland Oct 2, 2023
cd6d3fa
Adjust to new drawing module
dominikandreasseitz Oct 2, 2023
d4ea303
Block transpile fill_identities
dominikandreasseitz Oct 2, 2023
b7deb6a
Remove drawing from abstractblock
dominikandreasseitz Oct 2, 2023
34cadc9
Remove drawing from analogblock
dominikandreasseitz Oct 2, 2023
0d87bda
Remove drawing from compositeblock
dominikandreasseitz Oct 2, 2023
746aa0d
Remove drawing from primitiveblock
dominikandreasseitz Oct 2, 2023
3083768
fix test_circuit
dominikandreasseitz Oct 2, 2023
a25cc4e
Cleanup files
dominikandreasseitz Oct 2, 2023
ae6db09
Rename namespace
dominikandreasseitz Oct 2, 2023
d799bb0
Update pre-commits. (#18)
RolandMacDoland Oct 2, 2023
3a30973
Docs, examples, correct expectation shape (#31)
nmheim Oct 3, 2023
f2f9baa
test nvidia docker image
dominikandreasseitz Oct 4, 2023
8c245d7
test new image
dominikandreasseitz Oct 4, 2023
2a3a40d
don't exclude py files in docs forlder
nmheim Oct 5, 2023
4cbb744
try container
dominikandreasseitz Oct 6, 2023
8d18658
pytorch linux
dominikandreasseitz Oct 6, 2023
3fffec0
setup
dominikandreasseitz Oct 6, 2023
a4ee17f
try again
dominikandreasseitz Oct 6, 2023
540ced4
no mac
dominikandreasseitz Oct 6, 2023
8e55e01
Docs suggestions. (#33)
RolandMacDoland Oct 6, 2023
bc1bd5e
Update README and `docs/index.md` (#38)
nmheim Oct 6, 2023
85c30fa
Changing Pulser backend defaults and improved documentation (#37)
madagra Oct 6, 2023
c055c3c
code of conduct and contributing
dominikandreasseitz Oct 9, 2023
44a5a88
fix occurrence
dominikandreasseitz Oct 9, 2023
479c7fb
license file
dominikandreasseitz Oct 9, 2023
be69972
suggestions
dominikandreasseitz Oct 9, 2023
ec11338
license
dominikandreasseitz Oct 9, 2023
dc6d8c9
Add LICENSE, CODE_OF_CONDUCT, CONTRIBUTING
dominikandreasseitz Oct 9, 2023
fabcde1
Correctly draw analog blocks; improve HamEvo drawings (#36)
nmheim Oct 9, 2023
8d1753f
Add LICENSE, CODE_OF_CONDUCT, CONTRIBUTING file
dominikandreasseitz Oct 9, 2023
9fb0afe
Merge branch 'main' into ds/conduct
dominikandreasseitz Oct 9, 2023
a6b51bf
Add CODE_OF_CONDUCT, CONTRIBUTING, LICENSE files
dominikandreasseitz Oct 9, 2023
e95569c
Docs reviews (#43)
RolandMacDoland Oct 9, 2023
be7715c
Merge branch 'main' into ds/nvidia_docker
dominikandreasseitz Oct 9, 2023
939362e
test image
dominikandreasseitz Oct 9, 2023
88c3d88
test target
dominikandreasseitz Oct 9, 2023
91048d0
no docs
dominikandreasseitz Oct 9, 2023
ee6dd86
no matrix
dominikandreasseitz Oct 10, 2023
da5db51
dont test docs
dominikandreasseitz Oct 10, 2023
f7d7618
ubuntu-latest
dominikandreasseitz Oct 10, 2023
3240629
new docker
dominikandreasseitz Oct 10, 2023
5dabaf1
test again
dominikandreasseitz Oct 10, 2023
d016f78
indent
dominikandreasseitz Oct 10, 2023
5324394
s
dominikandreasseitz Oct 10, 2023
f4ead57
different
dominikandreasseitz Oct 10, 2023
3063363
different target
dominikandreasseitz Oct 10, 2023
ff96f7a
another run
dominikandreasseitz Oct 10, 2023
5102b48
[Docs,Infra] Build documentation (#57)
nmheim Oct 10, 2023
3d8da95
fix links index
jpmoutinho Oct 10, 2023
a1f3fb1
Merge branch 'main' of github.com:pasqal-io/qadence
jpmoutinho Oct 10, 2023
97f6c2b
fast docker
dominikandreasseitz Oct 10, 2023
5ffe1d6
again
dominikandreasseitz Oct 10, 2023
01bbfb6
correct
dominikandreasseitz Oct 10, 2023
25b3bfa
once again
dominikandreasseitz Oct 10, 2023
34c1adb
[Docs] Harmonise README with docs (#55)
RolandMacDoland Oct 10, 2023
8f41c44
new image
dominikandreasseitz Oct 10, 2023
90c624c
Merge branch 'main' into ds/nvidia_docker
dominikandreasseitz Oct 10, 2023
ee48d83
try after merge
dominikandreasseitz Oct 10, 2023
88f0fe7
new
dominikandreasseitz Oct 10, 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
56 changes: 56 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build documentation

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: {}

concurrency:
group: docs-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test_qadence_ubuntu:
name: Test Qadence docs (ubuntu)
runs-on: ubuntu-22.04
steps:

- uses: actions/checkout@v4

- name: Install JetBrains Mono font
run: |
sudo apt install -y wget unzip fontconfig
wget https://download.jetbrains.com/fonts/JetBrainsMono-2.304.zip
unzip JetBrainsMono-2.304.zip -d JetBrainsMono
mkdir -p /usr/share/fonts/truetype/jetbrains
cp JetBrainsMono/fonts/ttf/*.ttf /usr/share/fonts/truetype/jetbrains/
fc-cache -f -v

- name: Install graphviz
run: sudo apt-get install -y graphviz

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Hatch
run: |
pip install hatch

- name: Build docs
if: ${{ !startsWith(github.ref, 'ref/tags/v') }}
run: |
hatch -v run docs:build

- name: Deploy docs
if: startsWith(github.ref, 'ref/tags/v')
run: |
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
git config user.name "GitHub Actions"
git config user.email "[email protected]"
mike deploy --push --update-aliases $VERSION latest
8 changes: 6 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Lint and type check Qadence.
name: linting and type check

on:
push:
branches:
- main
pull_request: {}
workflow_dispatch: {}

Expand All @@ -10,7 +13,8 @@ jobs:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
- name: Checkout Qadence
uses: actions/checkout@v4
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ jobs:
test_qadence_ubuntu:
name: Test Qadence (ubuntu)
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Select Python 3.10
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: ${{ matrix.python-version }}
- name: Install Hatch
run: |
pip install hatch
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/test_docs.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Qadence example tests.
name: Run Qadence example and notebook tests.

on:
push:
Expand All @@ -9,8 +9,10 @@ on:
- main
paths:
- examples
paths-ignore:
- examples/notebooks
- notebooks
schedule:
# 03:00 every Saturday morning
- cron: '0 3 * * 6'
workflow_dispatch: {}

concurrency:
Expand All @@ -33,3 +35,6 @@ jobs:
- name: Run example tests
run: |
hatch -v run test-examples
- name: Run notebooks tests
run: |
hatch -v run test-notebooks
23 changes: 16 additions & 7 deletions .github/workflows/test_fast.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Qadence fast tests.
name: fast tests

on:
push:
Expand All @@ -14,18 +14,27 @@ concurrency:
cancel-in-progress: true

jobs:
test_qadence_ubuntu:
test_qadence_ubuntu_310:
name: Test Qadence (ubuntu)
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: pasqalofficial/qadence_fast_310:latest
Copy link
Collaborator

Choose a reason for hiding this comment

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

@dominikandreasseitz are you going to have also a _39 version of the image?

steps:
- uses: actions/checkout@v4
- name: Select Python 3.10
uses: actions/setup-python@v4
- name: Checkout Qadence
uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: "3.10"
- name: Install Hatch
run: |
pip install hatch
- name: Run fast tests
run: |
hatch -v run test -m "not slow"
- name: Upload coverage data
uses: actions/upload-artifact@v3
with:
name: "coverage-data"
path: .coverage.*
if-no-files-found: ignore
33 changes: 0 additions & 33 deletions .github/workflows/test_notebooks.yml

This file was deleted.

22 changes: 19 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,28 @@ runs/
# Mkdocs
site/

# converted notebooks
docs/**/*.py

# pt files
*.pt

# event files
events.out.tfevents.*
/examples/notebooks/onboarding_sandbox.ipynb

# latex
*.aux
*.lof
*.log
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
*.lb
*.pdf
*.ps
*.dvi

*.gv
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ repos:
args: ['--maxkb=600']

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.288"
rev: "v0.0.291"
hooks:
- id: ruff
args: [--fix, --show-fixes, --show-source]
args: [--fix, --show-fixes, --show-source, --exclude, examples/draw.py]

- repo: https://github.com/ambv/black
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black

Expand Down
33 changes: 33 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
Loading