You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test_files/guppy_optimization/README.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,8 @@ the equivalent flat program to `pytket`.
5
5
6
6
Each example is in its own directory, containing:
7
7
- A `.py`[uv script](https://docs.astral.sh/uv/guides/scripts/) that defines the guppy program for a pinned version of guppylang.
8
-
- If possible, a `.flat.py` script that defines the same program using `comptime` or manual loop peeling.
9
-
- A `.opt.py` script that defines the optimized version of the program, which we
10
-
expect to obtain after optimizing the previous versions.
8
+
- A `.flat.py` script that defines the same program using `comptime` or manual loop peeling, if applicable.
9
+
- A `.opt.py` script that defines a hand-optimized version of the program, indicative of the greatest optimization we believe can be achieved by the compiler.
11
10
12
11
- The `.hugr` files generated for each of the previous scripts.
13
12
@@ -16,6 +15,5 @@ the `.mmd` mermaid files generated for each of the previous programs. Go to
16
15
<http://mermaid.live> to view them.
17
16
We do not generate these for large programs, as they get too large to view.
18
17
19
-
Run `just regenerate` in this directory to regenerate the `.hugr` files.
20
-
The guppylang version used is defined in the `justfile`.
21
-
The mermaid diagrams will only be generated if the `hugr` CLI is installed.
18
+
Run `just regenerate` in this directory to regenerate the `.hugr` files and mermaid diagrams.
19
+
The guppylang version used is defined by each script.
0 commit comments