Skip to content

Commit 0c7c415

Browse files
committed
Merge branch 'master' of https://github.com/OpenQuantumDesign/oqd-trical into test
2 parents 6de456f + 966016f commit 0c7c415

58 files changed

Lines changed: 8076 additions & 2098 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
- Subsystem:
2727

2828

29-
* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
29+
* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

.github/workflows/check_copyright.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
- name: Check license & copyright headers
1111
uses: viperproject/check-license-header@v2
1212
with:
13-
path:
13+
path:
1414
config: .github/workflows/check_copyright_config.json
15-
# strict: true
15+
# strict: true

.github/workflows/check_mkdocs_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
uses: astral-sh/setup-uv@v4
2222
# - run: cp -r examples/ docs/examples/
2323
- run: uv pip install .[docs] --system
24-
- run: mkdocs build
24+
- run: mkdocs build

.github/workflows/copyright.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
13-
# limitations under the License.
13+
# limitations under the License.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,4 +167,4 @@ cython_debug/
167167
_scripts
168168
_docs
169169

170-
.pre-commit-config.yaml
170+
.pre-commit-config.yaml

docs/explanation/backends.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Backends
2+
3+
Backends are used to execute the AtomicCircuit.
4+
5+
## Supported Backends
6+
7+
- [QuTiP](https://qutip.readthedocs.io/en/latest/) <div style="float:right;"> [![](https://img.shields.io/badge/Implementation-7C4DFF)][oqd_trical.backend.qutip.QutipBackend] </div>
8+
- [Dynamiqs](https://qutip.readthedocs.io/en/latest/) <div style="float:right;"> [![](https://img.shields.io/badge/Implementation-7C4DFF)][oqd_trical.backend.dynamiqs.DynamiqsBackend] </div>
9+
10+
## Compile
11+
12+
Compiles the AtomicCircuit into a compatible form for the backend to run on.
13+
14+
<!-- prettier-ignore -->
15+
/// admonition | Examples
16+
type: example
17+
18+
- QuTiP requires the AtomicCircuit be compiled to a [`QutipExperiment`][oqd_trical.backend.qutip.interface.QutipExperiment].
19+
- Dynamiqs requires the AtomicCircuit be compiled to a [`DynamiqsExperiment`][oqd_trical.backend.dynamiqs.interface.DynamiqsExperiment].
20+
21+
///
22+
23+
## Run
24+
25+
Executes the compatible form of the AtomicCircuit with the backend using a tree walking interpreter.
26+
27+
<!-- prettier-ignore -->
28+
/// admonition | Examples
29+
type: example
30+
31+
- QuTiP uses [`QutipVM`][oqd_trical.backend.qutip.vm.QutipVM] as its tree walking interpreter.
32+
- Dynamiqs uses [`DynamiqsVM`][oqd_trical.backend.dynamiqs.vm.DynamiqsVM] as its tree walking interpreter.
33+
34+
///

docs/explanation/hamiltonian_construction/additional.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
These formulas are often computed using helper functions as part of the Hamiltonian construction process. When this is the case, the name and location of the helper function is specified.
44

55
<!-- prettier-ignore -->
6-
/// admonition |
6+
/// admonition |
77
type: card
88

99
$$
@@ -16,7 +16,7 @@ $$
1616
///
1717

1818
<!-- prettier-ignore -->
19-
/// admonition |
19+
/// admonition |
2020
type: card
2121

2222
$$
@@ -29,7 +29,7 @@ Used in [intensity_from_laser][oqd_trical.light_matter.compiler.utils.intensity_
2929
///
3030

3131
<!-- prettier-ignore -->
32-
/// admonition |
32+
/// admonition |
3333
type: card
3434

3535
$$
@@ -43,7 +43,7 @@ Used in [rabi_from_intensity][oqd_trical.light_matter.compiler.utils.rabi_from_i
4343
///
4444

4545
<!-- prettier-ignore -->
46-
/// admonition |
46+
/// admonition |
4747
type: card
4848

4949
$$

docs/reference/dynamiqs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
::: oqd_trical.backend.dynamiqs

docs/stylesheets/admonition_template.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
background-color: #FFFFFF;
1515
-webkit-mask-image: var(--md-admonition-icon--template);
1616
mask-image: var(--md-admonition-icon--template);
17-
}
17+
}

docs/stylesheets/admonitions.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
mask-image: var(--md-admonition-icon--important);
3737
}
3838

39-
39+
4040

4141
:root {
4242
--md-admonition-icon--note: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10" /></svg>')
@@ -55,7 +55,7 @@
5555
-webkit-mask-image: var(--md-admonition-icon--note);
5656
mask-image: var(--md-admonition-icon--note);
5757
}
58-
58+
5959
:root {
6060
--md-admonition-icon--warning: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z" /></svg>')
6161
}
@@ -79,7 +79,7 @@
7979
}
8080

8181

82-
82+
8383
.md-typeset .admonition.card,
8484
.md-typeset details.card {
8585
border-color: #C2185B;
@@ -93,4 +93,4 @@
9393
background-color: #C2185B;
9494
-webkit-mask-image: var(--md-admonition-icon--card);
9595
mask-image: var(--md-admonition-icon--card);
96-
}
96+
}

0 commit comments

Comments
 (0)