Skip to content

Commit

Permalink
[docs] improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc-Zen committed Sep 7, 2024
1 parent e64e9a3 commit ea3ad57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The following example demonstrates how to compose multiple subcircuits.
#import tequila as tq
#quantum-circuit(
..tq.graph-state((0, 1), (1,2)),
..tq.graph-state((0, 1), (1, 2)),
..tq.build(y: 3,
tq.p($pi$, 0),
tq.cx(0, (1, 2)),
Expand Down
7 changes: 4 additions & 3 deletions docs/guide/quill-guide.typ
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@


#let version = toml("/typst.toml").package.version
#show link: set text(fill: rgb("#1e8f6f"))

#show: project.with(
title: "Guide for the Quill Package ",
title: "Quill",
authors: ("Mc-Zen",),
abstract: [Quill is a library for creating quantum circuit diagrams in #link("https://typst.app/", [Typst]). ],
date: datetime.today().display("[month repr:long] [day], [year]"),
Expand Down Expand Up @@ -561,7 +562,7 @@ All built-in gates are drawn with a dedicated `draw-function` and you can also t
show-outline: false,
style: tidy.styles.default
)
let show-outline = tidy.styles.default.show-outline
let show-outline = tidy.styles.default.show-outline.with(style-args: (enable-cross-references: true))
let docs = parse-module(read("/src/quantum-circuit.typ"))
let docs-gates = parse-module(read("/src/gates.typ"))
Expand Down Expand Up @@ -687,7 +688,7 @@ The following example demonstrates how to compose multiple subcircuits.
#import tequila as tq

#quantum-circuit(
..tq.graph-state((0, 1), (1,2)),
..tq.graph-state((0, 1), (1, 2)),
..tq.build(y: 3,
tq.p($pi$, 0),
tq.cx(0, (1, 2)),
Expand Down
4 changes: 2 additions & 2 deletions examples/fault-tolerant-toffoli2.typ
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
group(2, 1),ctrl(1), 1, group(3, 1), ctrl(2), $X$, 1, rstick($|x〉$), [\ ],
lstick($|0〉$), $H$, ctrl(0), 1, ctrl(3), 2, $Z$, $X$, 2, group(2, 1),
ctrl(1), rstick($|y〉$), [\ ],
lstick($|0〉$), 1, targ(), 2, targ(), 1, mqgate($Z$, target: -1, wire-count: 2), 1, targ(fill: auto), 1, targ(fill: auto),
rstick($|z plus.circle x y〉$), [\ ],
lstick($|0〉$), 1, targ(), 2, targ(), 1, mqgate($Z$, target: -1, wire-count: 2), 1,
targ(fill: auto), 1, targ(fill: auto), rstick($|z plus.circle x y〉$), [\ ],
lstick($|x〉$), 2, targ(), 6, meter(target: -3), setwire(2), ctrl(-1, wire-count: 2), [\ ],
lstick($|y〉$), 3, targ(), 3, meter(target: -3), setwire(2), ctrl(-2, wire-count: 2), [\ ],
lstick($|z〉$), 4, ctrl(-3), $H$, meter(target: -3)
Expand Down

0 comments on commit ea3ad57

Please sign in to comment.