Skip to content

Commit

Permalink
Move tutorial files around
Browse files Browse the repository at this point in the history
  • Loading branch information
pimvenderbosch committed Dec 9, 2024
1 parent 923604d commit dcae4fa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
14 changes: 7 additions & 7 deletions docs/examples.md → docs/tutorials/examples.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Examples
# Examples
The following examples were generate to present some possible algorithms and may not be
fully implementable in the hardware at the moment.

### Example digital input.
## Example digital input.
```python
Model(
register = AllocQubits(2),
Expand All @@ -11,7 +11,7 @@ Model(
inputs = {
"x": Alloc(1, trainable=True),
},
instrunctions = [
instructions = [

# data encoding
Assign("%0", Call("mul", 0.5, Load("x"))),
Expand All @@ -23,7 +23,7 @@ Model(
)
```

### Example digital-analog input.
## Example digital-analog input.
```python
Model(
register = AllocQubits(4),
Expand Down Expand Up @@ -56,7 +56,7 @@ Model(
)
```

### Example analog input.
## Example analog input.
```python
Model(
register = AllocQubits(
Expand Down Expand Up @@ -101,7 +101,7 @@ Model(
)
```

### Example analog input (alternative)
## Example analog input (alternative)
This example is intend to be used with backends that either support crossing-lattice or similar
algorithms, or gridless backends (e.g. PyQ).
```python
Expand Down Expand Up @@ -168,4 +168,4 @@ Model(
QuInstruct('dyn_pulse', target_all(), Load('%0'), 1.0),
],
)
```
```
2 changes: 0 additions & 2 deletions docs/tutorials/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ nav:
- Challenges: contents/challenges.md

- Tutorials:
- Tutorials: tutorials/index.md
- Tutorials: tutorials/examples.md

- API:
- api/index.md
Expand Down

0 comments on commit dcae4fa

Please sign in to comment.