-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into gv/readout_errors
- Loading branch information
Showing
111 changed files
with
6,843 additions
and
420 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Lint and type check Qadence. | ||
name: linting and type check | ||
|
||
on: | ||
push: | ||
|
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
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
This file was deleted.
Oops, something went wrong.
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
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,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. |
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,90 @@ | ||
# How to contribute | ||
|
||
We're grateful for your interest in participating in Qadence. Please follow our guidelines to ensure a smooth contribution process. | ||
|
||
## Reporting an issue or proposing a feature | ||
|
||
Your course of action will depend on your objective, but generally, you should start by creating an issue. If you've discovered a bug or have a feature you'd like to see added to **qadence**, feel free to create an issue on [qadence's GitHub issue tracker](https://github.com/pasqal-io/qadence/issues). Here are some steps to take: | ||
|
||
1. Quickly search the existing issues using relevant keywords to ensure your issue hasn't been addressed already. | ||
2. If your issue is not listed, create a new one. Try to be as detailed and clear as possible in your description. | ||
|
||
- If you're merely suggesting an improvement or reporting a bug, that's already excellent! We thank you for it. Your issue will be listed and, hopefully, addressed at some point. | ||
- However, if you're willing to be the one solving the issue, that would be even better! In such instances, you would proceed by preparing a [Pull Request](#submitting-a-pull-request). | ||
|
||
## Submitting a pull request | ||
|
||
We're excited that you're eager to contribute to Qadence. To contribute, fork the `main` branch of qadence repository and once you are satisfied with your feature and all the tests pass create a [Pull Request](https://github.com/pasqal-io/qadence/pulls). | ||
|
||
Here's the process for making a contribution: | ||
|
||
Click the "Fork" button at the upper right corner of the [repo page](https://github.com/pasqal-io/qadence) to create a new GitHub repo at `https://github.com/USERNAME/qadence`, where `USERNAME` is your GitHub ID. Then, `cd` into the directory where you want to place your new fork and clone it: | ||
|
||
```shell | ||
git clone https://github.com/USERNAME/qadence.git | ||
``` | ||
|
||
Next, navigate to your new qadence fork directory and mark the main qadence repository as the `upstream`: | ||
|
||
```shell | ||
git remote add upstream https://github.com/pasqal-io/qadence.git | ||
``` | ||
|
||
## Setting up your development environment | ||
|
||
We recommended to use `hatch` for managing environments: | ||
|
||
To develop within qadence, use: | ||
```shell | ||
pip install hatch | ||
hatch -v shell | ||
``` | ||
|
||
To run qadence tests, use: | ||
|
||
```shell | ||
hatch -e tests run test | ||
``` | ||
|
||
If you don't want to use `hatch`, you can use the environment manager of your | ||
choice (e.g. Conda) and execute the following: | ||
|
||
```shell | ||
pip install pytest | ||
pip install -e . | ||
pytest | ||
``` | ||
|
||
### Useful things for your workflow: linting and testing | ||
|
||
Use `pre-commit` to lint your code and run the unit tests before pushing a new commit. | ||
|
||
Using `hatch`, it's simply: | ||
|
||
```shell | ||
hatch -e tests run pre-commit run --all-files | ||
hatch -e tests run test | ||
``` | ||
|
||
Our CI/CD pipeline will also test if the documentation can be built correctly. To test it locally, please run: | ||
|
||
```shell | ||
hatch -e docs run mkdocs build --clean --strict | ||
``` | ||
|
||
Without `hatch`, `pip` install those libraries first: | ||
"mkdocs", | ||
"mkdocs-material", | ||
"mkdocstrings", | ||
"mkdocstrings-python", | ||
"mkdocs-section-index", | ||
"mkdocs-jupyter", | ||
"mkdocs-exclude", | ||
"markdown-exec" | ||
|
||
|
||
And then: | ||
|
||
```shell | ||
mkdocs build --clean --strict | ||
``` |
Oops, something went wrong.