qciconnect-applib 0.2.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.
- qciconnect_applib-0.2.0/PKG-INFO +58 -0
- qciconnect_applib-0.2.0/README.md +36 -0
- qciconnect_applib-0.2.0/docs/.gitignore +3 -0
- qciconnect_applib-0.2.0/docs/Makefile +20 -0
- qciconnect_applib-0.2.0/docs/_static/css/rtd_dark.css +114 -0
- qciconnect_applib-0.2.0/docs/_static/logo.png +0 -0
- qciconnect_applib-0.2.0/docs/_static/logo_sdk.svg +159 -0
- qciconnect_applib-0.2.0/docs/_templates/layout.html +10 -0
- qciconnect_applib-0.2.0/docs/api.rst +34 -0
- qciconnect_applib-0.2.0/docs/conf.py +120 -0
- qciconnect_applib-0.2.0/docs/contributing.rst +82 -0
- qciconnect_applib-0.2.0/docs/index.rst +23 -0
- qciconnect_applib-0.2.0/docs/make.bat +35 -0
- qciconnect_applib-0.2.0/docs/submodules/algorithm.rst +50 -0
- qciconnect_applib-0.2.0/docs/submodules/app.rst +16 -0
- qciconnect_applib-0.2.0/docs/submodules/circuit.rst +62 -0
- qciconnect_applib-0.2.0/docs/submodules/mitigation.rst +50 -0
- qciconnect_applib-0.2.0/docs/submodules/problem.rst +23 -0
- qciconnect_applib-0.2.0/docs/tutorials/Tutorial 01 - Use the Trotter Time Evolution.ipynb +786 -0
- qciconnect_applib-0.2.0/docs/tutorials/Tutorial 02 - The VQE Algorithm.ipynb +394 -0
- qciconnect_applib-0.2.0/docs/tutorials/Tutorial 03 - Use the Imaginary Trotter Time Evolution.ipynb +485 -0
- qciconnect_applib-0.2.0/docs/usage.rst +53 -0
- qciconnect_applib-0.2.0/pyproject.toml +145 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/__init__.py +4 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/algorithm/__init__.py +26 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/algorithm/imaginary_time_evolution.py +54 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/algorithm/imaginary_time_evolution_params.py +30 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/algorithm/optimizer/__init__.py +1 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/algorithm/optimizer/scipy_optimizer.py +66 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/algorithm/quench.py +35 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/algorithm/quench_params.py +25 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/algorithm/time_evolution.py +52 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/algorithm/time_evolution_params.py +44 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/algorithm/vqe.py +113 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/algorithm/vqe_params.py +38 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/__init__.py +19 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/schemas/alf.schema.json +417 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/schemas/runner.schema.json +28 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/time_evolution/Dockerfile +14 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/time_evolution/README.md +59 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/time_evolution/__init__.py +3 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/time_evolution/app_config.json +46 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/time_evolution/main.py +40 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/time_evolution/parse_input.py +79 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/time_evolution/preview_media/time_evolution_plot.svg +1174 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/time_evolution/thumbnail.svg +311 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/app/time_evolution/write_output.py +105 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/circuit/__init__.py +3 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/circuit/builder/__init__.py +11 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/circuit/builder/efficient_su2_ansatz_builder.py +37 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/circuit/builder/imaginary_trotter_builder.py +101 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/circuit/builder/imaginary_trotter_step_builder.py +95 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/circuit/builder/qsp_circuit.py +48 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/circuit/builder/trotter_builder.py +142 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/circuit/builder/trotter_step_builder.py +35 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/circuit/efficient_su2.py +19 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/mitigation/__init__.py +12 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/mitigation/noise_amplifier.py +43 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/mitigation/postselection_sampler.py +29 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/mitigation/twirled_readout_sampler.py +49 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/mitigation/unitary_folding.py +73 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/mitigation/zne_estimator.py +79 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/problem/__init__.py +6 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/problem/problem_input/__init__.py +4 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/problem/problem_input/fermi_hubbard_hamiltonians.py +10 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/problem/problem_input/tfi_hamiltonians.py +46 -0
- qciconnect_applib-0.2.0/src/qciconnect/applib/problem/time_evolution_problem.py +12 -0
- qciconnect_applib-0.2.0/tests/__init__.py +0 -0
- qciconnect_applib-0.2.0/tests/applib/algorithm/optimizer/test_scipy_optimizer.py +69 -0
- qciconnect_applib-0.2.0/tests/applib/algorithm/test_imaginary_time_evolution.py +71 -0
- qciconnect_applib-0.2.0/tests/applib/algorithm/test_quench.py +100 -0
- qciconnect_applib-0.2.0/tests/applib/algorithm/test_trotter_evolution.py +116 -0
- qciconnect_applib-0.2.0/tests/applib/app/test_vqe.py +215 -0
- qciconnect_applib-0.2.0/tests/applib/app/time_evolution/example_result_page.md +13 -0
- qciconnect_applib-0.2.0/tests/applib/app/time_evolution/inputs/algorithm.json +8 -0
- qciconnect_applib-0.2.0/tests/applib/app/time_evolution/inputs/problem.json +3 -0
- qciconnect_applib-0.2.0/tests/applib/app/time_evolution/inputs/runner.json +5 -0
- qciconnect_applib-0.2.0/tests/applib/app/time_evolution/test_time_evolution_app.py +184 -0
- qciconnect_applib-0.2.0/tests/applib/circuit/builder/test_efficient_su2_builder.py +84 -0
- qciconnect_applib-0.2.0/tests/applib/circuit/builder/test_imaginary_trotter_builder.py +209 -0
- qciconnect_applib-0.2.0/tests/applib/circuit/builder/test_imaginary_trotter_step_builder.py +192 -0
- qciconnect_applib-0.2.0/tests/applib/circuit/builder/test_qsp_circuit.py +150 -0
- qciconnect_applib-0.2.0/tests/applib/circuit/builder/test_trotter_builder.py +105 -0
- qciconnect_applib-0.2.0/tests/applib/circuit/builder/test_trotter_step_builder.py +36 -0
- qciconnect_applib-0.2.0/tests/applib/circuit/test_efficient_su2.py +63 -0
- qciconnect_applib-0.2.0/tests/applib/mitigation/test_noise_amplifier.py +12 -0
- qciconnect_applib-0.2.0/tests/applib/mitigation/test_postselection_sampler.py +56 -0
- qciconnect_applib-0.2.0/tests/applib/mitigation/test_twirled_sampler.py +171 -0
- qciconnect_applib-0.2.0/tests/applib/mitigation/test_unitary_folding.py +54 -0
- qciconnect_applib-0.2.0/tests/applib/mitigation/test_zne_estimator.py +143 -0
- qciconnect_applib-0.2.0/tests/applib/problem/problem_input/test_tfi_hamiltonians.py +23 -0
- qciconnect_applib-0.2.0/tests/applib/problem/result/test_result.py +14 -0
- qciconnect_applib-0.2.0/tests/conftest.py +70 -0
- qciconnect_applib-0.2.0/tests/data/circuit_example.qasm +18 -0
- qciconnect_applib-0.2.0/tests/data/response_get_available_compilers.json +77 -0
- qciconnect_applib-0.2.0/tests/data/response_get_available_qpus.json +611 -0
- qciconnect_applib-0.2.0/tests/data/response_get_jobs.json +115 -0
- qciconnect_applib-0.2.0/tests/data/test_results/response_backend_job_with_quantum_state.json +25 -0
- qciconnect_applib-0.2.0/tests/data/test_results/response_backend_job_with_sampling.json +17 -0
- qciconnect_applib-0.2.0/tests/data/test_sampler_example_qasm_response.json +17 -0
- qciconnect_applib-0.2.0/tests/data/test_sampler_measurements_print.txt +16 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: qciconnect-applib
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Core application library of DLR QCI Connect quantum computing platform.
|
|
5
|
+
Keywords: quantum computing,QCI Connect SDK,application library,AppLib
|
|
6
|
+
Author: DLR-SC, David da Costa, Thomas Keitzl, Elisabeth Lobe, Johannes Renkl, Gary Schmiedinghoff, Thomas Stehle, Lukas Windgätter
|
|
7
|
+
Author-email: DLR-SC <qc-software@dlr.de>
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Dist: qciconnect-common
|
|
13
|
+
Requires-Dist: qciconnect-client
|
|
14
|
+
Requires-Dist: qciconnect-alf
|
|
15
|
+
Requires-Dist: bitarray>=3.4.3
|
|
16
|
+
Requires-Dist: matplotlib>=3.10.3
|
|
17
|
+
Requires-Dist: notebook>=7.4.4
|
|
18
|
+
Requires-Dist: qiskit>=2.1.0
|
|
19
|
+
Requires-Dist: qiskit-qasm3-import>=0.6.0
|
|
20
|
+
Requires-Python: >=3.12
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
|
|
23
|
+
[](https://applib-df5e59.pages.gitlab.dlr.de/)
|
|
24
|
+
|
|
25
|
+
# QCI Connect Application Library (AppLib)
|
|
26
|
+
|
|
27
|
+
This is a python package containing the core application library
|
|
28
|
+
of the [QCI Connect](https://connect.qci.dlr.de) platform
|
|
29
|
+
of the [German Aerospace Center (DLR)](https://www.dlr.de/).
|
|
30
|
+
|
|
31
|
+
The library contains concrete implementations that are based on the Application Library Framework (ALF).
|
|
32
|
+
|
|
33
|
+
## Installation Instructions
|
|
34
|
+
|
|
35
|
+
To install the requirements for this package, we recommend using [ultraviolet](https://docs.astral.sh/uv) ([installation guide](https://docs.astral.sh/uv/getting-started/installation/#installation-methods)).
|
|
36
|
+
All dependencies can be installed to a virtual environment via
|
|
37
|
+
|
|
38
|
+
``` console
|
|
39
|
+
git submodule update --init
|
|
40
|
+
uv sync
|
|
41
|
+
```
|
|
42
|
+
Before using AppLib, we need to [activate the virtual environment](https://docs.python.org/3/library/venv.html#how-venvs-work).
|
|
43
|
+
Here's how it's done on different operating systems.
|
|
44
|
+
Note the [different activation instructions for other shells](https://docs.python.org/3/library/venv.html#how-venvs-work).
|
|
45
|
+
|
|
46
|
+
### Linux and MacOs
|
|
47
|
+
Open a bash shell and run
|
|
48
|
+
|
|
49
|
+
``` bash
|
|
50
|
+
source .venv/bin/activate
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Windows
|
|
54
|
+
Open the powershell and run
|
|
55
|
+
|
|
56
|
+
``` console
|
|
57
|
+
.venv/Scripts/activate
|
|
58
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
[](https://applib-df5e59.pages.gitlab.dlr.de/)
|
|
2
|
+
|
|
3
|
+
# QCI Connect Application Library (AppLib)
|
|
4
|
+
|
|
5
|
+
This is a python package containing the core application library
|
|
6
|
+
of the [QCI Connect](https://connect.qci.dlr.de) platform
|
|
7
|
+
of the [German Aerospace Center (DLR)](https://www.dlr.de/).
|
|
8
|
+
|
|
9
|
+
The library contains concrete implementations that are based on the Application Library Framework (ALF).
|
|
10
|
+
|
|
11
|
+
## Installation Instructions
|
|
12
|
+
|
|
13
|
+
To install the requirements for this package, we recommend using [ultraviolet](https://docs.astral.sh/uv) ([installation guide](https://docs.astral.sh/uv/getting-started/installation/#installation-methods)).
|
|
14
|
+
All dependencies can be installed to a virtual environment via
|
|
15
|
+
|
|
16
|
+
``` console
|
|
17
|
+
git submodule update --init
|
|
18
|
+
uv sync
|
|
19
|
+
```
|
|
20
|
+
Before using AppLib, we need to [activate the virtual environment](https://docs.python.org/3/library/venv.html#how-venvs-work).
|
|
21
|
+
Here's how it's done on different operating systems.
|
|
22
|
+
Note the [different activation instructions for other shells](https://docs.python.org/3/library/venv.html#how-venvs-work).
|
|
23
|
+
|
|
24
|
+
### Linux and MacOs
|
|
25
|
+
Open a bash shell and run
|
|
26
|
+
|
|
27
|
+
``` bash
|
|
28
|
+
source .venv/bin/activate
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Windows
|
|
32
|
+
Open the powershell and run
|
|
33
|
+
|
|
34
|
+
``` console
|
|
35
|
+
.venv/Scripts/activate
|
|
36
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line, and also
|
|
5
|
+
# from the environment for the first two.
|
|
6
|
+
SPHINXOPTS ?=
|
|
7
|
+
SPHINXBUILD ?= sphinx-build
|
|
8
|
+
SOURCEDIR = .
|
|
9
|
+
BUILDDIR = _build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @name Readthedocs
|
|
3
|
+
* @namespace http://userstyles.org
|
|
4
|
+
* @description Styles the documentation pages hosted on Readthedocs.io
|
|
5
|
+
* @author Anthony Post
|
|
6
|
+
* @homepage https://userstyles.org/styles/142968
|
|
7
|
+
* @version 0.20170529055029
|
|
8
|
+
*
|
|
9
|
+
* Modified by Aloïs Dreyfus: 20200527-1037
|
|
10
|
+
* Modified by Erik Kalkoken: 20220615
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
@media (prefers-color-scheme: dark) {
|
|
14
|
+
a:visited {
|
|
15
|
+
color: #bf84d8;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
pre {
|
|
19
|
+
background-color: #2d2d2d !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.wy-nav-content {
|
|
23
|
+
background: #3c3c3c;
|
|
24
|
+
color: aliceblue;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.method dt, .class dt, .data dt, .attribute dt, .function dt,
|
|
28
|
+
.descclassname, .descname {
|
|
29
|
+
background-color: #525252 !important;
|
|
30
|
+
color: white !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.toc-backref {
|
|
34
|
+
color: grey !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
code.literal {
|
|
38
|
+
background-color: #2d2d2d !important;
|
|
39
|
+
border: 1px solid #6d6d6d !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.wy-nav-content-wrap {
|
|
43
|
+
background-color: rgba(0, 0, 0, 0.6) !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sidebar {
|
|
47
|
+
background-color: #191919 !important;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.sidebar-title {
|
|
51
|
+
background-color: #2b2b2b !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.xref, .py-meth {
|
|
55
|
+
color: #7ec3e6 !important;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.admonition, .note {
|
|
59
|
+
background-color: #2d2d2d !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.wy-side-nav-search {
|
|
63
|
+
background-color: inherit;
|
|
64
|
+
border-bottom: 1px solid #fcfcfc;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.wy-table thead, .rst-content table.docutils thead, .rst-content table.field-list thead {
|
|
68
|
+
background-color: #b9b9b9;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.wy-table thead th, .rst-content table.docutils thead th, .rst-content table.field-list thead th {
|
|
72
|
+
border: solid 2px #e1e4e5;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.wy-table thead p, .rst-content table.docutils thead p, .rst-content table.field-list thead p {
|
|
76
|
+
margin: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.wy-table-odd td, .wy-table-striped tr:nth-child(2n-1) td, .rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td {
|
|
80
|
+
background-color: #343131;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.highlight .m {
|
|
84
|
+
color: inherit
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Literal.Number */
|
|
88
|
+
.highlight .nv {
|
|
89
|
+
color: #3a7ca8
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Name.Variable */
|
|
93
|
+
|
|
94
|
+
body {
|
|
95
|
+
text-align: justify;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.rst-content .section .admonition ul {
|
|
99
|
+
margin-bottom: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
li.toctree-l1 {
|
|
103
|
+
margin-top: 5px;
|
|
104
|
+
margin-bottom: 5px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.wy-menu-vertical li code {
|
|
108
|
+
color: #E74C3C;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.wy-menu-vertical .xref {
|
|
112
|
+
color: #2980B9 !important;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<svg
|
|
3
|
+
id="uuid-37b26aa5-5a7e-4c15-8a7f-24c56528df86"
|
|
4
|
+
viewBox="0 0 2000 857.2871897423"
|
|
5
|
+
version="1.1"
|
|
6
|
+
sodipodi:docname="logo_sdk.svg"
|
|
7
|
+
inkscape:version="1.4.3 (0d15f75, 2025-12-25)"
|
|
8
|
+
inkscape:export-filename="logo_sdk.png"
|
|
9
|
+
inkscape:export-xdpi="96"
|
|
10
|
+
inkscape:export-ydpi="96"
|
|
11
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
12
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
13
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
16
|
+
<defs
|
|
17
|
+
id="defs11">
|
|
18
|
+
<linearGradient
|
|
19
|
+
id="linearGradient11"
|
|
20
|
+
inkscape:collect="always">
|
|
21
|
+
<stop
|
|
22
|
+
style="stop-color:#ff0000;stop-opacity:1;"
|
|
23
|
+
offset="0"
|
|
24
|
+
id="stop11" />
|
|
25
|
+
<stop
|
|
26
|
+
style="stop-color:#ff0000;stop-opacity:0;"
|
|
27
|
+
offset="1"
|
|
28
|
+
id="stop12" />
|
|
29
|
+
</linearGradient>
|
|
30
|
+
<radialGradient
|
|
31
|
+
inkscape:collect="always"
|
|
32
|
+
xlink:href="#linearGradient11"
|
|
33
|
+
id="radialGradient12"
|
|
34
|
+
cx="1446.1428"
|
|
35
|
+
cy="799.39508"
|
|
36
|
+
fx="1446.1428"
|
|
37
|
+
fy="799.39508"
|
|
38
|
+
r="269.01508"
|
|
39
|
+
gradientTransform="matrix(1,0,0,0.38953265,-251.74825,355.77321)"
|
|
40
|
+
gradientUnits="userSpaceOnUse" />
|
|
41
|
+
</defs>
|
|
42
|
+
<sodipodi:namedview
|
|
43
|
+
id="namedview11"
|
|
44
|
+
pagecolor="#505050"
|
|
45
|
+
bordercolor="#eeeeee"
|
|
46
|
+
borderopacity="1"
|
|
47
|
+
inkscape:showpageshadow="0"
|
|
48
|
+
inkscape:pageopacity="0"
|
|
49
|
+
inkscape:pagecheckerboard="0"
|
|
50
|
+
inkscape:deskcolor="#505050"
|
|
51
|
+
inkscape:zoom="0.7865"
|
|
52
|
+
inkscape:cx="1551.8118"
|
|
53
|
+
inkscape:cy="319.77114"
|
|
54
|
+
inkscape:window-width="3840"
|
|
55
|
+
inkscape:window-height="2126"
|
|
56
|
+
inkscape:window-x="1909"
|
|
57
|
+
inkscape:window-y="-11"
|
|
58
|
+
inkscape:window-maximized="1"
|
|
59
|
+
inkscape:current-layer="uuid-37b26aa5-5a7e-4c15-8a7f-24c56528df86" />
|
|
60
|
+
<path
|
|
61
|
+
d="M638.1805675504,549.6026080547c-41.9520076783,72.2328520265-120.098057802,120.8416101769-209.6452443408,120.8416101769-133.8394274813,0-242.3354592792-108.4973362758-242.3354592792-242.3341548014,0-133.8381230034,108.496031798-242.3354592792,242.3354592792-242.3354592792,89.7689477734,0,168.0793621063,48.8500865528,209.9557100693,121.3816640071l161.1747608426-93.0497095679C725.510141743,86.1424993485,587.185919411,0,428.644899349,0,191.9108679606,0,0,191.9095634828,0,428.6435948711s191.9108679606,428.6435948711,428.644899349,428.6435948711c158.6427693344,0,297.0530872045-86.2520754879,371.1709097252-214.3544093819l-161.6352415239-93.3301723058Z"
|
|
62
|
+
fill="#fff"
|
|
63
|
+
id="path1" />
|
|
64
|
+
<path
|
|
65
|
+
d="m 1065.0898,290.07264 -34.6045,-34.60935 c -2.8353,0.56607 -5.9561,0.56607 -9.3673,0.56607 -63.53824,0 -97.01052,-42.25875 -97.01052,-102.95678 0,-60.702964 34.03836,-101.834485 97.01052,-101.834485 62.1256,0 97.0155,41.983096 97.0155,101.834485 0,42.54424 -17.3072,76.8681 -49.9229,92.46224 l 44.8134,44.53782 z m -43.9718,-65.23649 c 40.5655,0 55.5985,-36.027 55.5985,-71.76357 0,-34.88993 -16.1652,-70.631432 -55.5985,-70.631432 -39.42835,0 -55.5935,35.741502 -55.5935,70.631432 0,35.73657 15.03299,71.76357 55.5935,71.76357 z"
|
|
66
|
+
fill="#ffffff"
|
|
67
|
+
id="path2" />
|
|
68
|
+
<path
|
|
69
|
+
d="m 1299.1102,249.79269 c -14.4718,3.40137 -30.0758,6.23667 -45.1088,6.23667 -64.0994,0 -108.6372,-32.04478 -108.6372,-98.98933 0,-67.791211 41.417,-105.801935 108.6372,-105.801935 13.0542,0 30.3515,2.554722 44.8233,8.225319 l -2.8353,33.472278 c -15.033,-8.510819 -28.6483,-10.494544 -42.8347,-10.494544 -40.846,0 -66.3735,31.203052 -66.3735,71.763582 0,40.27994 24.9565,70.63142 67.2202,70.63142 15.604,0 34.0433,-3.40629 43.4057,-8.22532 z"
|
|
70
|
+
fill="#ffffff"
|
|
71
|
+
id="path3" />
|
|
72
|
+
<path
|
|
73
|
+
d="M 1331.7161,54.644391 H 1371.43 V 252.62799 h -39.7139 z"
|
|
74
|
+
fill="#ffffff"
|
|
75
|
+
id="path4" />
|
|
76
|
+
<path
|
|
77
|
+
d="m 1077.002,533.46039 c -14.462,3.4063 -30.066,6.2416 -45.099,6.2416 -64.11419,0 -108.64709,-32.05463 -108.64709,-99.0041 0,-67.79121 41.41702,-105.80194 108.64709,-105.80194 13.0443,0 30.3515,2.55473 44.8135,8.22532 l -2.8353,33.47228 c -15.033,-8.51082 -28.6484,-10.49454 -42.8347,-10.49454 -40.84604,0 -66.37357,31.20305 -66.37357,71.76358 0,40.27994 24.96146,70.63142 67.23007,70.63142 15.604,0 34.0334,-3.39645 43.3958,-8.22039 z"
|
|
78
|
+
fill="#ffffff"
|
|
79
|
+
id="path5" />
|
|
80
|
+
<path
|
|
81
|
+
d="m 1171.4627,386.80752 c 43.3958,0 76.5825,29.21441 76.5825,77.43417 0,41.98802 -28.0772,75.4603 -76.5825,75.4603 -48.2198,0 -76.307,-33.47228 -76.307,-75.4603 0,-48.21976 33.1868,-77.43417 76.307,-77.43417 z m 0,123.38964 c 29.2193,0 36.8687,-26.10345 36.8687,-50.49391 0,-22.40674 -11.9122,-43.39583 -36.8687,-43.39583 -24.6809,0 -36.5931,21.55517 -36.5931,43.39583 0,24.1148 7.6593,50.49391 36.5931,50.49391 z"
|
|
82
|
+
fill="#ffffff"
|
|
83
|
+
id="path6" />
|
|
84
|
+
<path
|
|
85
|
+
d="m 1278.1113,390.20889 h 36.022 v 19.85694 h 0.571 c 11.9122,-16.73614 28.0774,-23.25831 47.9343,-23.25831 34.6044,0 49.6374,24.39046 49.6374,57.29666 v 92.19151 h -38.0107 V 458.2856 c 0,-17.86829 -0.2756,-41.97818 -24.671,-41.97818 -27.5162,0 -33.4723,29.78049 -33.4723,48.50035 v 71.48792 h -38.0107 z"
|
|
86
|
+
fill="#ffffff"
|
|
87
|
+
id="path7" />
|
|
88
|
+
<path
|
|
89
|
+
d="m 1451.9801,390.20889 h 36.022 v 19.85694 h 0.571 c 11.9122,-16.73614 28.0774,-23.25831 47.9343,-23.25831 34.6044,0 49.6374,24.39046 49.6374,57.29666 v 92.19151 h -38.0009 V 458.2856 c 0,-17.86829 -0.2855,-41.97818 -24.6808,-41.97818 -27.5162,0 -33.4724,29.78049 -33.4724,48.50035 v 71.48792 h -38.0106 z"
|
|
90
|
+
fill="#ffffff"
|
|
91
|
+
id="path8" />
|
|
92
|
+
<path
|
|
93
|
+
d="m 1743.0117,528.06545 c -13.9009,7.65925 -29.7904,11.63654 -50.2084,11.63654 -48.2198,0 -76.307,-27.80168 -76.307,-75.74087 0,-42.26367 22.4067,-77.1536 67.7912,-77.1536 54.1857,0 69.4944,37.15423 69.4944,88.21422 h -100.978 c 1.7031,23.54873 18.1538,36.87857 41.7025,36.87857 18.4393,0 34.3189,-6.80275 48.5053,-14.74749 z m -25.5374,-79.13732 c -1.1322,-18.43929 -9.6381,-34.32385 -30.9126,-34.32385 -21.2746,0 -32.0547,14.74749 -33.7578,34.32385 z"
|
|
94
|
+
fill="#ffffff"
|
|
95
|
+
id="path9" />
|
|
96
|
+
<path
|
|
97
|
+
d="m 1878.5941,421.69745 c -6.8028,-3.1208 -14.1765,-5.39003 -25.8131,-5.39003 -23.5388,0 -38.5718,18.71987 -38.5718,46.23605 0,26.9501 12.7687,47.65369 39.4283,47.65369 10.7801,0 22.6923,-3.96745 29.2194,-6.80275 l 1.7031,31.48363 c -11.0655,3.4063 -22.4166,4.82395 -38.0107,4.82395 -47.9441,0 -72.054,-32.62563 -72.054,-77.15852 0,-42.2686 24.9664,-75.73595 70.6363,-75.73595 15.3087,0 26.3742,1.69822 36.8688,4.81902 z"
|
|
98
|
+
fill="#ffffff"
|
|
99
|
+
id="path10" />
|
|
100
|
+
<path
|
|
101
|
+
d="m 1925.6817,418.00565 h -28.0872 v -27.79676 h 28.0872 v -29.2144 l 38.0107,-12.1977 v 41.4121 h 33.748 v 27.79676 h -33.748 v 68.08163 c 0,12.48319 3.3965,24.10988 17.8683,24.10988 6.8028,0 13.3299,-1.41765 17.2973,-3.96745 l 1.142,30.06598 c -7.9447,2.2643 -16.7361,3.4063 -28.0872,3.4063 -29.7805,0 -46.2311,-18.43929 -46.2311,-47.37312 z"
|
|
102
|
+
fill="#ffffff"
|
|
103
|
+
id="path11" />
|
|
104
|
+
<text
|
|
105
|
+
xml:space="preserve"
|
|
106
|
+
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:284.372px;font-family:Monospace;-inkscape-font-specification:Monospace;text-align:center;writing-mode:lr-tb;direction:ltr;text-anchor:middle;fill:#ffffff;fill-opacity:1;stroke:#404040;stroke-width:0;stroke-linejoin:round;stroke-dasharray:none"
|
|
107
|
+
x="1187.5696"
|
|
108
|
+
y="805.82465"
|
|
109
|
+
id="text11"><tspan
|
|
110
|
+
sodipodi:role="line"
|
|
111
|
+
id="tspan11"
|
|
112
|
+
x="1187.5696"
|
|
113
|
+
y="805.82465"
|
|
114
|
+
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:284.372px;font-family:Frutiger;-inkscape-font-specification:'Frutiger Bold';fill:#ffffff;fill-opacity:1;stroke-width:0;stroke-dasharray:none">SDK</tspan></text>
|
|
115
|
+
<style
|
|
116
|
+
id="style1">
|
|
117
|
+
.MsftOfcThm_Background1_Fill_v2 {
|
|
118
|
+
fill:#FFFFFF;
|
|
119
|
+
}
|
|
120
|
+
</style>
|
|
121
|
+
<path
|
|
122
|
+
d="m 1728.9463,686.08293 c 0,8.79371 -7.6955,15.98857 -17.1011,15.98857 h -17.101 c -9.4056,0 -17.1011,-7.19486 -17.1011,-15.98857 v -7.99429 H 1532.2838 V 790.0086 c 0,8.79372 7.6955,15.98857 17.1011,15.98857 h 307.8196 c 9.4056,0 17.1011,-7.19485 17.1011,-15.98857 V 678.08864 h -145.3593 z"
|
|
123
|
+
class="MsftOfcThm_Background1_Fill_v2"
|
|
124
|
+
fill="#FFFFFF"
|
|
125
|
+
id="path1-2"
|
|
126
|
+
style="stroke-width:4.13387" />
|
|
127
|
+
<style
|
|
128
|
+
id="style1-5">
|
|
129
|
+
.MsftOfcThm_Background1_Fill_v2 {
|
|
130
|
+
fill:#FFFFFF;
|
|
131
|
+
}
|
|
132
|
+
</style>
|
|
133
|
+
<path
|
|
134
|
+
d="m 1690.9616,768.02484 c -1.6819,1.68159 -3.8439,2.16209 -6.0059,1.20114 -2.162,-0.96091 -3.3634,-2.88277 -3.3634,-5.04486 0,-2.1621 1.4416,-4.32414 3.3634,-5.04487 2.162,-0.96091 4.324,-0.48045 6.0059,1.20118 2.162,1.92182 2.162,5.52532 0,7.68741 z m 169.6034,-158.31261 -19.4589,19.45878 -15.3747,-4.08396 -3.8439,-15.13459 19.4589,-19.45873 c -11.5312,-4.32418 -24.5037,-1.68164 -33.6327,6.48623 -9.1286,8.40813 -12.7322,20.90014 -9.6091,32.91173 l -122.5182,122.5181 c -4.324,4.08392 -6.0055,10.32996 -4.5643,16.09551 1.4417,5.76554 6.0059,10.32995 11.7716,11.77132 5.7652,1.44141 11.7711,-0.24027 16.0955,-4.56437 l 122.5178,-122.5181 c 12.0118,3.123 24.5037,-0.48046 32.9119,-9.60928 8.1679,-9.12877 10.8104,-22.3415 6.2461,-33.87264 z"
|
|
135
|
+
class="MsftOfcThm_Background1_Fill_v2"
|
|
136
|
+
fill="#FFFFFF"
|
|
137
|
+
id="path1-5"
|
|
138
|
+
style="stroke-width:2.40231" />
|
|
139
|
+
<g
|
|
140
|
+
transform="matrix(3.1627524,-3.1656328,3.1656328,3.1627524,-2245.3718,648.14982)"
|
|
141
|
+
id="g4">
|
|
142
|
+
<path
|
|
143
|
+
id="rect1"
|
|
144
|
+
d="m 607.35927,599.03372 v 1.01073 h -0.53152 l -9.82842,2.27413 v 1.01073 l 9.79832,3.03217 h 0.56162 v 36.63883 h 5.30632 v -36.63883 h 3.79022 4.29559 v -6.31703 h -3.53755 -4.54826 v -1.01073 z"
|
|
145
|
+
style="fill:#ffffff;stroke-width:0.252682" />
|
|
146
|
+
</g>
|
|
147
|
+
<g
|
|
148
|
+
transform="matrix(1.055416,0,0,0.60505807,1320.1136,477.13426)"
|
|
149
|
+
id="g1">
|
|
150
|
+
<path
|
|
151
|
+
d="m 337,342.5 c 0,-17.397 12.984,-31.5 29,-31.5 16.016,0 29,14.103 29,31.5 0,17.397 -12.984,31.5 -29,31.5 -16.016,0 -29,-14.103 -29,-31.5 z"
|
|
152
|
+
stroke="#ffffff"
|
|
153
|
+
stroke-width="16"
|
|
154
|
+
stroke-miterlimit="8"
|
|
155
|
+
fill="none"
|
|
156
|
+
fill-rule="evenodd"
|
|
157
|
+
id="path1-9" />
|
|
158
|
+
</g>
|
|
159
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{% extends "!layout.html" %}
|
|
2
|
+
|
|
3
|
+
{% block sidebartitle %}
|
|
4
|
+
{# Add SDK logo with backlink to landing page above regular logo for component #}
|
|
5
|
+
<a target="_blank" class="icon" href="https://landing-page-026f64.pages.gitlab.dlr.de/">
|
|
6
|
+
<img alt="SDK Logo" class="logo" src="{{ pathto('_static/logo_sdk.svg', 1) }}">
|
|
7
|
+
</a>
|
|
8
|
+
|
|
9
|
+
{{ super() }}
|
|
10
|
+
{% endblock %}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
API
|
|
2
|
+
===
|
|
3
|
+
|
|
4
|
+
Submodule Documentation
|
|
5
|
+
------------------------
|
|
6
|
+
|
|
7
|
+
The following pages provide a short introduction to each submodule
|
|
8
|
+
and detailed API information of important classes.
|
|
9
|
+
|
|
10
|
+
.. toctree::
|
|
11
|
+
:titlesonly:
|
|
12
|
+
|
|
13
|
+
submodules/algorithm
|
|
14
|
+
submodules/app
|
|
15
|
+
submodules/circuit
|
|
16
|
+
submodules/mitigation
|
|
17
|
+
submodules/problem
|
|
18
|
+
|
|
19
|
+
Submodule Structure
|
|
20
|
+
----------------------
|
|
21
|
+
|
|
22
|
+
The following pages are an automatically generated submodule tree,
|
|
23
|
+
which you can click through to explore all submodules. and classes.
|
|
24
|
+
|
|
25
|
+
.. autosummary::
|
|
26
|
+
:toctree: generated
|
|
27
|
+
:recursive:
|
|
28
|
+
|
|
29
|
+
qciconnect.applib
|
|
30
|
+
qciconnect.applib.algorithm
|
|
31
|
+
qciconnect.applib.app
|
|
32
|
+
qciconnect.applib.circuit
|
|
33
|
+
qciconnect.applib.mitigation
|
|
34
|
+
qciconnect.applib.problem
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Configuration file for the Sphinx documentation builder. # noqa: D100
|
|
2
|
+
#
|
|
3
|
+
# This file only contains a selection of the most common options. For a full
|
|
4
|
+
# list see the documentation:
|
|
5
|
+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
6
|
+
|
|
7
|
+
# -- Path setup --------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
# If extensions (or modules to document with autodoc) are in another directory,
|
|
10
|
+
# add these directories to sys.path here. If the directory is relative to the
|
|
11
|
+
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
12
|
+
#
|
|
13
|
+
import os
|
|
14
|
+
import sys
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
from urllib.parse import quote
|
|
17
|
+
|
|
18
|
+
sys.path.insert(0, os.path.abspath('../')) # noqa: PTH100
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
# -- Project information -----------------------------------------------------
|
|
22
|
+
|
|
23
|
+
project = "AppLib - Application Library"
|
|
24
|
+
copyright = "2025, German Aerospace Center (DLR) - Institute of Software Technology (SC)" # noqa: A001
|
|
25
|
+
author = "DLR AppLib core team"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# -- General configuration ---------------------------------------------------
|
|
29
|
+
|
|
30
|
+
extensions = [
|
|
31
|
+
"sphinx.ext.duration",
|
|
32
|
+
"sphinx.ext.doctest",
|
|
33
|
+
"sphinx.ext.autodoc",
|
|
34
|
+
"sphinx.ext.autosummary",
|
|
35
|
+
"sphinx.ext.intersphinx",
|
|
36
|
+
"sphinx.ext.linkcode",
|
|
37
|
+
"nbsphinx",
|
|
38
|
+
"enum_tools.autoenum",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
intersphinx_mapping = {
|
|
42
|
+
"rtd": ("https://docs.readthedocs.io/en/stable/", None),
|
|
43
|
+
"python": ("https://docs.python.org/3/", None),
|
|
44
|
+
"sphinx": ("https://www.sphinx-doc.org/en/master/", None),
|
|
45
|
+
}
|
|
46
|
+
intersphinx_disabled_domains = ["std"]
|
|
47
|
+
|
|
48
|
+
templates_path = ["_templates"]
|
|
49
|
+
|
|
50
|
+
# -- Options for EPUB output
|
|
51
|
+
epub_show_urls = "footnote"
|
|
52
|
+
|
|
53
|
+
# List of patterns, relative to source directory, that match files and
|
|
54
|
+
# directories to ignore when looking for source files.
|
|
55
|
+
# This pattern also affects html_static_path and html_extra_path.
|
|
56
|
+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", ".venv",
|
|
57
|
+
".vscode", ".pytest_cache", "tests",
|
|
58
|
+
"**.doctrees",
|
|
59
|
+
"**.ipynb_checkpoints"]
|
|
60
|
+
|
|
61
|
+
# -- Options for HTML output -------------------------------------------------
|
|
62
|
+
|
|
63
|
+
html_theme = "sphinx_rtd_theme"
|
|
64
|
+
|
|
65
|
+
html_static_path = ["_static"]
|
|
66
|
+
html_css_files = [
|
|
67
|
+
'css/rtd_dark.css',
|
|
68
|
+
]
|
|
69
|
+
html_logo = '_static/logo.png'
|
|
70
|
+
|
|
71
|
+
autodoc_typehints = 'description'
|
|
72
|
+
autodoc_default_flags = ['members', 'inherited-members', 'imported-members']
|
|
73
|
+
autodoc_default_options = {
|
|
74
|
+
'exclude-members': '__weakref__, model_config'
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def _contains_expression(expression, filename):
|
|
81
|
+
if not Path.is_file(filename):
|
|
82
|
+
return False
|
|
83
|
+
|
|
84
|
+
with Path.open(filename) as f:
|
|
85
|
+
if expression in f.read():
|
|
86
|
+
return True
|
|
87
|
+
return False
|
|
88
|
+
|
|
89
|
+
def _find_file_with_definition(searched_definition, module_path):
|
|
90
|
+
if Path.is_file(Path(module_path).with_suffix(".py")):
|
|
91
|
+
return Path(module_path).with_suffix(".py")
|
|
92
|
+
|
|
93
|
+
for file in Path.iterdir(module_path):
|
|
94
|
+
if file in ["__pycache__"]:
|
|
95
|
+
continue
|
|
96
|
+
file_path = Path(module_path) / file
|
|
97
|
+
if _contains_expression("class " + searched_definition, file_path):
|
|
98
|
+
return file_path
|
|
99
|
+
if _contains_expression("def " + searched_definition, file_path):
|
|
100
|
+
return file_path
|
|
101
|
+
|
|
102
|
+
raise ValueError(f"Module Path {module_path} contains no file defining {searched_definition}")
|
|
103
|
+
|
|
104
|
+
def linkcode_resolve(domain, info):
|
|
105
|
+
"""Resolve documentation links to source for Sphinx extension linkcode."""
|
|
106
|
+
if domain != 'py':
|
|
107
|
+
return None
|
|
108
|
+
if not info['module']:
|
|
109
|
+
return None
|
|
110
|
+
module_name = quote(info['module'].replace('.', '/'))
|
|
111
|
+
searched_name = info['fullname'].split('.')[0]
|
|
112
|
+
|
|
113
|
+
module_path = Path.cwd() / "../src/" / module_name
|
|
114
|
+
main_branch_url = "https://gitlab.dlr.de/qci-connect/partners/all/qci-connect-sdk/applib/blob/main/src/qciconnect/applib/"
|
|
115
|
+
|
|
116
|
+
filename = _find_file_with_definition(searched_name, module_path)
|
|
117
|
+
relative_filename = os.path.relpath(filename, start=os.curdir+"../src/").replace('\\', '/')
|
|
118
|
+
|
|
119
|
+
linked_file = str(main_branch_url) + relative_filename
|
|
120
|
+
return linked_file
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
Contributing
|
|
2
|
+
=====================================
|
|
3
|
+
|
|
4
|
+
Thank you for contributing to our project!
|
|
5
|
+
In the following, we will highlight the contributor guidelines for this project.
|
|
6
|
+
|
|
7
|
+
New Contributor Guide
|
|
8
|
+
---------------------
|
|
9
|
+
|
|
10
|
+
To get an overview of the project and to find the installation instructions
|
|
11
|
+
for this library, please read the `README <../../../README.md>`_ file.
|
|
12
|
+
|
|
13
|
+
How to Contribute
|
|
14
|
+
---------------------
|
|
15
|
+
|
|
16
|
+
We welcome contributions in the form of:
|
|
17
|
+
|
|
18
|
+
- Bug reports
|
|
19
|
+
- Feature requests
|
|
20
|
+
- Merge requests
|
|
21
|
+
|
|
22
|
+
Code checks, reviews and merge guidelines
|
|
23
|
+
-----------------------------------------
|
|
24
|
+
|
|
25
|
+
If you would like to work on the code, make sure to open an issue and create a corresponding branch before submitting
|
|
26
|
+
code. Before every merge request the code has to successfully pass all CI checks and reviewed by at least one of the
|
|
27
|
+
core developers.
|
|
28
|
+
|
|
29
|
+
For merging we are using a rebase + fast-forward merge. All commits of the feature branch should be squashed on merge.
|
|
30
|
+
Please make sure to rebase the feature branch accordingly before requesting a code review and merging.
|
|
31
|
+
|
|
32
|
+
Code Style
|
|
33
|
+
^^^^^^^^^^
|
|
34
|
+
|
|
35
|
+
The code style is being checked using ruff.
|
|
36
|
+
Please check out the `pyproject.toml <../../../pyproject.toml>`_ file
|
|
37
|
+
and the
|
|
38
|
+
`ruff rules <https://docs.astral.sh/ruff/rules/>`_ for more details.
|
|
39
|
+
No automatic style changes are applied.
|
|
40
|
+
So please make sure to follow these style guidelines.
|
|
41
|
+
|
|
42
|
+
It is possible to check the code style locally.
|
|
43
|
+
Simply navigate to the main directory and execute
|
|
44
|
+
|
|
45
|
+
.. code-block:: console
|
|
46
|
+
|
|
47
|
+
dev_tools/check_linting.ps1
|
|
48
|
+
|
|
49
|
+
if you're using the Windows Powershell or
|
|
50
|
+
|
|
51
|
+
.. code-block:: console
|
|
52
|
+
|
|
53
|
+
dev_tools/check_linting.sh
|
|
54
|
+
|
|
55
|
+
if you're using bash or similar Linux shells.
|
|
56
|
+
|
|
57
|
+
Building Documentation Locally
|
|
58
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
59
|
+
|
|
60
|
+
The documentation is automatically build with ``sphinx`` from the docstrings provided in the source code.
|
|
61
|
+
|
|
62
|
+
To explicitly add your classes to the documentation pages, you can edit the
|
|
63
|
+
``*.rst`` files found in ``qciconnect/alf/docs/submodules`` or ``qciconnect/applib/docs/submodules``, respectively.
|
|
64
|
+
|
|
65
|
+
Before you push the changes, it is best to check if the documentation looks the way you intended by building it locally.
|
|
66
|
+
|
|
67
|
+
To build the documentation locally, navigate to the main directory and execute:
|
|
68
|
+
|
|
69
|
+
.. code-block:: console
|
|
70
|
+
|
|
71
|
+
dev_tools/build_docs.ps1
|
|
72
|
+
|
|
73
|
+
if you're using the Windows Powershell or:
|
|
74
|
+
|
|
75
|
+
.. code-block:: console
|
|
76
|
+
|
|
77
|
+
dev_tools/build_docs.sh
|
|
78
|
+
|
|
79
|
+
if you're using bash or similar Linux shells.
|
|
80
|
+
|
|
81
|
+
You can open the documentation by opening ``qciconnect/alf/docs/public/index.html``
|
|
82
|
+
or ``qciconnect/applib/docs/public/index.html``, respectively.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Welcome to the Application Library's documentation!
|
|
2
|
+
===================================================
|
|
3
|
+
|
|
4
|
+
**Application Library** provides applications and error mitigation schemes for QCI Connect
|
|
5
|
+
and builds on the Application Library Framework (ALF).
|
|
6
|
+
|
|
7
|
+
Check out the :doc:`usage` section for further information, including
|
|
8
|
+
the :ref:`installation` of the project.
|
|
9
|
+
|
|
10
|
+
.. note::
|
|
11
|
+
|
|
12
|
+
This project is under active development.
|
|
13
|
+
|
|
14
|
+
Contents
|
|
15
|
+
--------
|
|
16
|
+
|
|
17
|
+
.. toctree::
|
|
18
|
+
:maxdepth: 2
|
|
19
|
+
|
|
20
|
+
Home <self>
|
|
21
|
+
usage
|
|
22
|
+
api
|
|
23
|
+
contributing
|