qiskit-addon-sqd 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. qiskit_addon_sqd-0.3.0/.github/ISSUE_TEMPLATE/BUG_REPORT.yaml +50 -0
  2. qiskit_addon_sqd-0.3.0/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.yaml +14 -0
  3. qiskit_addon_sqd-0.3.0/.github/dependabot.yml +13 -0
  4. qiskit_addon_sqd-0.3.0/.github/workflows/README.md +37 -0
  5. qiskit_addon_sqd-0.3.0/.github/workflows/citation.yml +68 -0
  6. qiskit_addon_sqd-0.3.0/.github/workflows/docs.yml +57 -0
  7. qiskit_addon_sqd-0.3.0/.github/workflows/lint.yml +32 -0
  8. qiskit_addon_sqd-0.3.0/.github/workflows/release.yml +47 -0
  9. qiskit_addon_sqd-0.3.0/.github/workflows/test_latest_versions.yml +42 -0
  10. qiskit_addon_sqd-0.3.0/.gitignore +131 -0
  11. qiskit_addon_sqd-0.3.0/.mergify.yml +8 -0
  12. qiskit_addon_sqd-0.3.0/CODE_OF_CONDUCT.md +3 -0
  13. qiskit_addon_sqd-0.3.0/CONTRIBUTING.md +26 -0
  14. qiskit_addon_sqd-0.3.0/LICENSE.txt +203 -0
  15. qiskit_addon_sqd-0.3.0/PKG-INFO +385 -0
  16. qiskit_addon_sqd-0.3.0/README.md +95 -0
  17. qiskit_addon_sqd-0.3.0/SECURITY.md +20 -0
  18. qiskit_addon_sqd-0.3.0/docs/_static/.gitkeep +0 -0
  19. qiskit_addon_sqd-0.3.0/docs/_static/images/lucj_ansatz_zig_zag_pattern.jpg +0 -0
  20. qiskit_addon_sqd-0.3.0/docs/_static/images/qiskit-dark-logo.svg +178 -0
  21. qiskit_addon_sqd-0.3.0/docs/_static/images/qiskit-light-logo.svg +178 -0
  22. qiskit_addon_sqd-0.3.0/docs/_static/images/sqd_diagram.png +0 -0
  23. qiskit_addon_sqd-0.3.0/docs/_templates/autosummary/class.rst +32 -0
  24. qiskit_addon_sqd-0.3.0/docs/apidocs/qiskit_addon_sqd.configuration_recovery.rst +10 -0
  25. qiskit_addon_sqd-0.3.0/docs/apidocs/qiskit_addon_sqd.counts.rst +10 -0
  26. qiskit_addon_sqd-0.3.0/docs/apidocs/qiskit_addon_sqd.fermion.rst +10 -0
  27. qiskit_addon_sqd-0.3.0/docs/apidocs/qiskit_addon_sqd.qubit.rst +10 -0
  28. qiskit_addon_sqd-0.3.0/docs/apidocs/qiskit_addon_sqd.rst +10 -0
  29. qiskit_addon_sqd-0.3.0/docs/apidocs/qiskit_addon_sqd.subsampling.rst +10 -0
  30. qiskit_addon_sqd-0.3.0/docs/conf.py +174 -0
  31. qiskit_addon_sqd-0.3.0/docs/how_tos/add_fermionic_excitations_to_configuration_pool.ipynb +195 -0
  32. qiskit_addon_sqd-0.3.0/docs/how_tos/benchmark_pauli_projection.ipynb +473 -0
  33. qiskit_addon_sqd-0.3.0/docs/how_tos/choose_subspace_dimension.ipynb +357 -0
  34. qiskit_addon_sqd-0.3.0/docs/how_tos/index.rst +10 -0
  35. qiskit_addon_sqd-0.3.0/docs/how_tos/integrate_dice_solver.ipynb +168 -0
  36. qiskit_addon_sqd-0.3.0/docs/how_tos/project_pauli_operators_onto_hilbert_subspaces.ipynb +294 -0
  37. qiskit_addon_sqd-0.3.0/docs/how_tos/select_open_closed_shell.ipynb +536 -0
  38. qiskit_addon_sqd-0.3.0/docs/how_tos/use_oo_to_optimize_hamiltonian_basis.ipynb +428 -0
  39. qiskit_addon_sqd-0.3.0/docs/index.rst +93 -0
  40. qiskit_addon_sqd-0.3.0/docs/install.rst +74 -0
  41. qiskit_addon_sqd-0.3.0/docs/molecules/n2_fci.txt +1611 -0
  42. qiskit_addon_sqd-0.3.0/docs/tutorials/01_chemistry_hamiltonian.ipynb +542 -0
  43. qiskit_addon_sqd-0.3.0/docs/tutorials/02_qubit_hamiltonian.ipynb +472 -0
  44. qiskit_addon_sqd-0.3.0/docs/tutorials/index.rst +10 -0
  45. qiskit_addon_sqd-0.3.0/pyproject.toml +144 -0
  46. qiskit_addon_sqd-0.3.0/qiskit_addon_sqd/__init__.py +31 -0
  47. qiskit_addon_sqd-0.3.0/qiskit_addon_sqd/configuration_recovery.py +298 -0
  48. qiskit_addon_sqd-0.3.0/qiskit_addon_sqd/counts.py +158 -0
  49. qiskit_addon_sqd-0.3.0/qiskit_addon_sqd/fermion.py +454 -0
  50. qiskit_addon_sqd-0.3.0/qiskit_addon_sqd/qubit.py +317 -0
  51. qiskit_addon_sqd-0.3.0/qiskit_addon_sqd/subsampling.py +153 -0
  52. qiskit_addon_sqd-0.3.0/test/README.md +95 -0
  53. qiskit_addon_sqd-0.3.0/test/__init__.py +10 -0
  54. qiskit_addon_sqd-0.3.0/test/test_configuration_recovery.py +19 -0
  55. qiskit_addon_sqd-0.3.0/test/test_counts.py +148 -0
  56. qiskit_addon_sqd-0.3.0/test/test_fermion.py +19 -0
  57. qiskit_addon_sqd-0.3.0/test/test_qubit.py +19 -0
  58. qiskit_addon_sqd-0.3.0/test/test_subsampling.py +275 -0
  59. qiskit_addon_sqd-0.3.0/test/test_workflow.py +19 -0
  60. qiskit_addon_sqd-0.3.0/tox.ini +67 -0
@@ -0,0 +1,50 @@
1
+ name: 🐛 Bug report
2
+ description: Create a report to help us improve 🤔.
3
+ labels: ["bug"]
4
+
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: Thank you for reporting a bug! Before you do so, please ensure that you have tested on the latest released version of the code. If it does, please also use the search to see if there are any other related issues or pull requests.
9
+
10
+ - type: textarea
11
+ attributes:
12
+ label: Environment
13
+ description: Please give the actual version number (_e.g._ 0.1.0) if you are using a release version, or the first 7-8 characters of the commit hash if you have installed from `git`. If anything else is relevant, you can add it to the list.
14
+ # The trailing spaces on the following lines are to make filling the form
15
+ # in easier. The type is 'textarea' rather than three separate 'input's
16
+ # to make the resulting issue body less noisy with headings.
17
+ value: |
18
+ - **qiskit-addon-sqd version**:
19
+ - **Python version**:
20
+ - **Operating system**:
21
+ validations:
22
+ required: true
23
+
24
+ - type: textarea
25
+ attributes:
26
+ label: What is happening and why is it wrong?
27
+ description: A short description of what is going wrong, in words.
28
+ validations:
29
+ required: true
30
+
31
+ - type: textarea
32
+ attributes:
33
+ label: How can we reproduce the issue?
34
+ description: Give some steps that show the bug. A [minimal working example](https://stackoverflow.com/help/minimal-reproducible-example) of code with output is best. If you are copying in code, please remember to enclose it in triple backticks (` ``` [multiline code goes here] ``` `) so that it [displays correctly](https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax).
35
+ validations:
36
+ required: true
37
+
38
+ - type: textarea
39
+ attributes:
40
+ label: Traceback
41
+ description: If your code provided an error traceback, please paste it below, enclosed in triple backticks (` ``` [multiline code goes here] ``` `) so that it [displays correctly](https://docs.github.com/en/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax).
42
+ validations:
43
+ required: false
44
+
45
+ - type: textarea
46
+ attributes:
47
+ label: Any suggestions?
48
+ description: Not required, but if you have suggestions for how a contributor should fix this, or any problems we should be aware of, let us know.
49
+ validations:
50
+ required: false
@@ -0,0 +1,14 @@
1
+ name: 🚀 Feature request
2
+ description: Suggest an idea for this project 💡!
3
+ labels: ["type: feature request"]
4
+
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: Please make sure to browse the opened and closed issues to make sure that this idea has not previously been discussed.
9
+
10
+ - type: textarea
11
+ attributes:
12
+ label: What should we add?
13
+ validations:
14
+ required: true
@@ -0,0 +1,13 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ labels: ["dependencies"]
6
+ schedule:
7
+ interval: "weekly"
8
+ - package-ecosystem: "pip"
9
+ directory: "/"
10
+ labels: ["dependencies"]
11
+ versioning-strategy: increase
12
+ schedule:
13
+ interval: "monthly"
@@ -0,0 +1,37 @@
1
+ # GitHub Actions workflows
2
+
3
+ This directory contains a number of workflows for use with [GitHub Actions](https://docs.github.com/actions). They specify what standards should be expected for development of this software, including pull requests. These workflows are designed to work out of the box for any research software prototype, especially those based on [Qiskit](https://qiskit.org/).
4
+
5
+ ## Lint check (`lint.yml`)
6
+
7
+ This workflow checks that the code is formatted properly and follows the style guide by installing tox and running the [lint environment](/tests/#lint-environment) (`tox -e lint`).
8
+
9
+ ## Latest version tests (`test_latest_versions.yml`)
10
+
11
+ This workflow installs the latest version of tox and runs [the current repository's tests](/tests/#test-py-environments) under each supported Python version on Linux and under a single Python version on macOS and Windows. This is the primary testing workflow. It runs for all code changes and additionally once per day, to ensure tests continue to pass as new versions of dependencies are released.
12
+
13
+ ## Development version tests (`test_development_versions.yml`)
14
+
15
+ This workflow installs tox and modifies `pyproject.toml` to use the _development_ versions of certain Qiskit packages, using [extremal-python-dependencies](https://github.com/IBM/extremal-python-dependencies). For all other packages, the latest version is installed. This workflow runs on two versions of Python: the minimum supported version and the maximum supported version. Its purpose is to identify as soon as possible (i.e., before a Qiskit release) when changes in Qiskit will break the current repository. This workflow runs for all code changes, as well as on a timer once per day.
16
+
17
+ ## Minimum version tests (`test_minimum_versions.yml`)
18
+
19
+ This workflow first installs the minimum supported tox version (the `minversion` specified in [`tox.ini`](/tox.ini)) and then installs the _minimum_ compatible version of each package listed in `pyproject.toml`, using [extremal-python-dependencies](https://github.com/IBM/extremal-python-dependencies). The purpose of this workflow is to make sure the minimum version specifiers in these files are accurate, i.e., that the tests actually pass with these versions. This workflow uses a single Python version, typically the oldest supported version, as the minimum supported versions of each package may not be compatible with the most recent Python release.
20
+
21
+ Under the hood, this workflow uses a regular expression to change each `>=` and `~=` specifier in the dependencies to instead be `==`, as pip [does not support](https://github.com/pypa/pip/issues/8085) resolving the minimum versions of packages directly. Unfortunately, this means that the workflow will only install the minimum version of a package if it is _explicitly_ listed in one of the requirements files with a minimum version. For instance, if the only listed dependency is `qiskit>=1.0`, this workflow will install `qiskit==1.0` along with the latest version of each transitive dependency, such as `rustworkx`.
22
+
23
+ ## Code coverage (`coverage.yml`)
24
+
25
+ This workflow tests the [coverage environment](/tests/#coverage-environment) on a single version of Python by installing tox and running `tox -e coverage`.
26
+
27
+ ## Documentation (`docs.yml`)
28
+
29
+ This workflow ensures that the [Sphinx](https://www.sphinx-doc.org/) documentation builds successfully. It also publishes the resulting build to [GitHub Pages](https://pages.github.com/) if it is from the appropriate branch (e.g., `main`).
30
+
31
+ ## Citation preview (`citation.yml`)
32
+
33
+ This workflow is only triggered when the `CITATION.bib` file is changed. It ensures that the file contains only ASCII characters ([escaped codes](https://en.wikibooks.org/wiki/LaTeX/Special_Characters#Escaped_codes) are preferred, as then the `bib` file will work even when `inputenc` is not used). It also compiles a sample LaTeX document which includes the citation in its bibliography and uploads the resulting PDF as an artifact so it can be previewed (e.g., before merging a pull request).
34
+
35
+ ## Release (`release.yml`)
36
+
37
+ This workflow is triggered by a maintainer pushing a tag that represents a release. It publishes the release to github.com and to [PyPI](https://pypi.org/).
@@ -0,0 +1,68 @@
1
+ name: Citation preview
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ paths: ['CITATION.bib', '.github/workflows/citation.yml']
7
+ pull_request:
8
+ branches: [ main ]
9
+ paths: ['CITATION.bib', '.github/workflows/citation.yml']
10
+
11
+ jobs:
12
+ build-preview:
13
+ runs-on: ubuntu-latest
14
+ timeout-minutes: 30
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - name: Check for non-ASCII characters
18
+ run: |
19
+ # Fail immediately if there are any non-ASCII characters in
20
+ # the BibTeX source. We prefer "escaped codes" rather than
21
+ # UTF-8 characters in order to ensure the bibliography will
22
+ # display correctly even in documents that do not contain
23
+ # \usepackage[utf8]{inputenc}.
24
+ if [ -f "CITATION.bib" ]; then
25
+ python3 -c 'open("CITATION.bib", encoding="ascii").read()'
26
+ fi
27
+ - name: Install LaTeX
28
+ run: |
29
+ if [ -f "CITATION.bib" ]; then
30
+ sudo apt-get update
31
+ sudo apt-get install -y texlive-latex-base texlive-publishers
32
+ fi
33
+ - name: Run LaTeX
34
+ run: |
35
+ if [ -f "CITATION.bib" ]; then
36
+ arr=(${GITHUB_REPOSITORY//\// })
37
+ export REPO=${arr[1]}
38
+ cat <<- EOF > citation-preview.tex
39
+ \documentclass[preprint,aps,physrev,notitlepage]{revtex4-2}
40
+ \usepackage{hyperref}
41
+ \begin{document}
42
+ \title{\texttt{$REPO} BibTeX test}
43
+ \maketitle
44
+ \noindent
45
+ \texttt{$REPO}
46
+ \cite{$REPO}
47
+ \bibliography{CITATION}
48
+ \end{document}
49
+ EOF
50
+ pdflatex citation-preview
51
+ fi
52
+ - name: Run BibTeX
53
+ run: |
54
+ if [ -f "CITATION.bib" ]; then
55
+ bibtex citation-preview
56
+ fi
57
+ - name: Re-run LaTeX
58
+ run: |
59
+ if [ -f "CITATION.bib" ]; then
60
+ pdflatex citation-preview
61
+ pdflatex citation-preview
62
+ fi
63
+ - name: Upload PDF
64
+ if: always()
65
+ uses: actions/upload-artifact@v4
66
+ with:
67
+ name: citation-preview.pdf
68
+ path: citation-preview.pdf
@@ -0,0 +1,57 @@
1
+ name: Build Sphinx docs
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ tags:
7
+ - "[0-9]+.[0-9]+.[0-9]+*"
8
+ branches:
9
+ - main
10
+ - 'stable/**'
11
+ pull_request:
12
+ branches:
13
+ - main
14
+ - 'stable/**'
15
+ jobs:
16
+ build:
17
+ name: Build docs
18
+ runs-on: ubuntu-latest
19
+ timeout-minutes: 20
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ with:
23
+ fetch-depth: 0
24
+ - uses: actions/setup-python@v5
25
+ with:
26
+ python-version: '3.10'
27
+ - name: Install dependencies
28
+ run: |
29
+ python -m pip install --upgrade pip
30
+ pip install tox
31
+ sudo apt-get update
32
+ sudo apt-get install -y pandoc
33
+ - name: Build docs
34
+ shell: bash
35
+ run: |
36
+ tox -edocs
37
+ - name: Upload docs artifact
38
+ if: always()
39
+ uses: actions/upload-pages-artifact@v3
40
+ with:
41
+ path: docs/_build/html
42
+
43
+ deploy:
44
+ name: Deploy docs
45
+ if: ${{ github.ref == 'refs/heads/stable/0.3' }}
46
+ needs: build
47
+ permissions:
48
+ pages: write
49
+ id-token: write
50
+ environment:
51
+ name: github-pages
52
+ url: ${{ steps.deployment.outputs.page_url }}
53
+ runs-on: ubuntu-latest
54
+ steps:
55
+ - name: Deploy to GitHub Pages
56
+ id: deployment
57
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,32 @@
1
+ name: Lint check
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - 'stable/**'
8
+ pull_request:
9
+ branches:
10
+ - main
11
+ - 'stable/**'
12
+
13
+ jobs:
14
+ lint:
15
+ runs-on: ubuntu-latest
16
+ timeout-minutes: 30
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ with:
20
+ fetch-depth: 0
21
+ - name: Set up Python 3.10
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: '3.10'
25
+ - name: Install tox
26
+ run: |
27
+ python -m pip install --upgrade pip
28
+ pip install tox
29
+ - name: Run lint check
30
+ shell: bash
31
+ run: |
32
+ tox -elint
@@ -0,0 +1,47 @@
1
+ name: Publish release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "[0-9]+.[0-9]+.[0-9]+*"
7
+
8
+ jobs:
9
+
10
+ github:
11
+ name: github
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout tag
15
+ uses: actions/checkout@v4
16
+ with:
17
+ ref: ${{ github.ref_name }}
18
+ - name: Publish release
19
+ uses: ghalactic/github-release-from-tag@v5
20
+ if: github.ref_type == 'tag'
21
+ with:
22
+ token: ${{ secrets.GITHUB_TOKEN }}
23
+ generateReleaseNotes: "true"
24
+
25
+ pypi:
26
+ name: pypi
27
+ runs-on: ubuntu-latest
28
+ needs: github
29
+ environment:
30
+ name: pypi
31
+ url: https://pypi.org/p/qiskit-addon-sqd
32
+ permissions:
33
+ id-token: write
34
+ steps:
35
+ - name: Checkout tag
36
+ uses: actions/checkout@v4
37
+ with:
38
+ ref: ${{ github.ref_name }}
39
+ - name: Install `build` tool
40
+ run: |
41
+ python -m pip install --upgrade pip
42
+ pip install build
43
+ - name: Build distribution
44
+ run: |
45
+ python -m build
46
+ - name: Publish release to PyPI
47
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,42 @@
1
+ name: Latest version tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - 'stable/**'
8
+ pull_request:
9
+ branches:
10
+ - main
11
+ - 'stable/**'
12
+ schedule:
13
+ - cron: '0 1 * * *'
14
+
15
+ jobs:
16
+ tests:
17
+ runs-on: ${{ matrix.os }}
18
+ timeout-minutes: 30
19
+ strategy:
20
+ max-parallel: 4
21
+ matrix:
22
+ os: [ubuntu-latest]
23
+ python-version: ["3.10", "3.11", "3.12"]
24
+ include:
25
+ - os: macos-latest
26
+ python-version: "3.12"
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - name: Set up Python ${{ matrix.python-version }}
30
+ uses: actions/setup-python@v5
31
+ with:
32
+ python-version: ${{ matrix.python-version }}
33
+ - name: Install dependencies
34
+ run: |
35
+ python -m pip install --upgrade pip
36
+ pip install tox
37
+ - name: Test using tox environment
38
+ shell: bash
39
+ run: |
40
+ toxpyversion=$(echo ${{ matrix.python-version }} | sed -E 's/^([0-9]+)\.([0-9]+).*$/\1\2/')
41
+ tox -epy${toxpyversion}
42
+ tox -epy${toxpyversion}-notebook
@@ -0,0 +1,131 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ pip-wheel-metadata/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+ docs/stubs/
74
+
75
+ # PyBuilder
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ .python-version
87
+
88
+ # pipenv
89
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
90
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
91
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
92
+ # install all needed dependencies.
93
+ #Pipfile.lock
94
+
95
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
96
+ __pypackages__/
97
+
98
+ # Celery stuff
99
+ celerybeat-schedule
100
+ celerybeat.pid
101
+
102
+ # SageMath parsed files
103
+ *.sage.py
104
+
105
+ # Environments
106
+ .env
107
+ .venv
108
+ env/
109
+ venv/
110
+ ENV/
111
+ env.bak/
112
+ venv.bak/
113
+ .DS_Store/
114
+
115
+ # Spyder project settings
116
+ .spyderproject
117
+ .spyproject
118
+
119
+ # Rope project settings
120
+ .ropeproject
121
+
122
+ # mkdocs documentation
123
+ /site
124
+
125
+ # mypy
126
+ .mypy_cache/
127
+ .dmypy.json
128
+ dmypy.json
129
+
130
+ # Pyre type checker
131
+ .pyre/
@@ -0,0 +1,8 @@
1
+ pull_request_rules:
2
+ - name: backport
3
+ conditions:
4
+ - label=stable backport potential
5
+ actions:
6
+ backport:
7
+ branches:
8
+ - stable/0.3
@@ -0,0 +1,3 @@
1
+ # Code of Conduct
2
+
3
+ All members of this project agree to adhere to Qiskit's [code of conduct](https://github.com/Qiskit/qiskit/blob/main/CODE_OF_CONDUCT.md).
@@ -0,0 +1,26 @@
1
+ # Developer guide
2
+
3
+ Development of the `qiskit-addon-sqd` package takes place [on GitHub](https://github.com/Qiskit/qiskit-addon-sqd).
4
+ The [Contributing to Qiskit](https://github.com/Qiskit/qiskit/blob/main/CONTRIBUTING.md) guide may serve as a
5
+ useful starting point, as this package builds on [Qiskit].
6
+
7
+ This package is written in [Python] and uses [tox] as a testing framework. A description of the available
8
+ `tox` test environments is located at [`test/README.md`](test/README.md). These environments are used in the
9
+ CI workflows, which are described at [`.github/workflows/README.md`](.github/workflows/README.md).
10
+
11
+ Project configuration, including information about dependencies, is stored in [`pyproject.toml`](pyproject.toml).
12
+
13
+ We use [Sphinx] for documentation and [reno] for release notes.
14
+ We use [Google style docstrings](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html),
15
+ except we omit the type of each argument, as type information is redundant with Python
16
+ [type hints](https://docs.python.org/3/library/typing.html).
17
+
18
+ We require 100% coverage in all new code.
19
+ In rare cases where it is not possible to test a code block, we mark it with ``# pragma: no cover`` so that
20
+ the ``coverage`` tests will pass.
21
+
22
+ [Qiskit]: https://www.ibm.com/quantum/qiskit
23
+ [Python]: https://www.python.org/
24
+ [tox]: https://github.com/tox-dev/tox
25
+ [Sphinx]: https://www.sphinx-doc.org/
26
+ [reno]: https://docs.openstack.org/reno/