Skip to content

Commit

Permalink
[docs] minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc-Zen committed Sep 7, 2024
1 parent f11e8de commit 922e80a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The syntax works analog to Qiskit. Available gates are `x`, `y`, `z`, `h`, `s`,

Also like Qiskit, all qubit arguments support ranges, e.g., `tq.h(range(5))` adds a Hadamard gate on the first five qubits and `tq.cx((0, 1), (1, 2))` adds two #smallcaps[cx] gates: one from qubit 0 to 1 and one from qubit 1 to 2.

With Tequila, it is easy to build templates for quantum circuits and to compose circuits of various building blocks. For this purpose, `tq.build()` and the build-in templates all feature optional `x` and `y` arguments to allow placing a subcircuit at an arbitrary position of the circuit.
With Tequila, it is easy to build templates for quantum circuits and to compose circuits of various building blocks. For this purpose, `tq.build()` and the built-in templates all feature optional `x` and `y` arguments to allow placing a subcircuit at an arbitrary position of the circuit.
As an example, Tequila provides a `tq.graph-state()` template for quickly drawing graph state preparation circuits. The following example demonstrates how to compose multiple subcircuits.


Expand Down
8 changes: 4 additions & 4 deletions docs/guide/quill-guide.typ
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

= Introduction

#pad(x: 1cm)[_@gate-gallery features a gallery of many gates and symbols and how to create them. In @demo, you can find a variety of example figures along with the code. _]
#pad(x: 1cm)[_@gate-gallery features a gallery of many gates and symbols and how to create them. In @demo, you can find a variety of example figures along with the code. @tequila introduces an alternative model for creating and composing circuits._]

Would you like to create quantum circuits directly in Typst? Maybe a circuit for quantum teleportation?
#figure[#include("../../examples/teleportation.typ")]
Expand Down Expand Up @@ -586,7 +586,7 @@ All built-in gates are drawn with a dedicated `draw-function` and you can also t
colbreak()
[== Tequila]
heading(outlined: false)[Tequila]
v(2mm)
show-outline(docs-tequila)
show-module(docs-tequila)
Expand Down Expand Up @@ -653,7 +653,7 @@ The following two circuits reproduce figures from Exercise 10.66 and 10.68 on co
= Tequila
= Tequila <tequila>
_Tequila_ is a submodule of *Quill* that adds a completely different way of building circuits.
Expand All @@ -677,7 +677,7 @@ The syntax works analog to Qiskit. Available gates are `x`, `y`, `z`, `h`, `s`,
Also like Qiskit, all qubit arguments support ranges, e.g., `tq.h(range(5))` adds a Hadamard gate on the first five qubits and `tq.cx((0, 1), (1, 2))` adds two #smallcaps[cx] gates: one from qubit 0 to 1 and one from qubit 1 to 2.
With Tequila, it is easy to build templates for quantum circuits and to compose circuits of various building blocks. For this purpose, `tq.build()` and the build-in templates all feature optional `x` and `y` arguments to allow placing a subcircuit at an arbitrary position of the circuit.
With Tequila, it is easy to build templates for quantum circuits and to compose circuits of various building blocks. For this purpose, `tq.build()` and the built-in templates all feature optional `x` and `y` arguments to allow placing a subcircuit at an arbitrary position of the circuit.
As an example, Tequila provides a `tq.graph-state()` template for quickly drawing graph state preparation circuits. The following example demonstrates how to compose multiple subcircuits.
#example(scale: 74%,
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
set text(font: "Linux Libertine", lang: "en")
set heading(numbering: "I.a")
show heading.where(level: 1): it => block(smallcaps(it), below: 1em)
show link: underline.with(offset: 1.2pt)

v(4em)

Expand Down Expand Up @@ -67,7 +68,6 @@
show raw.where(block: true) : set par(justify: false)


show link: underline.with(offset: 1.2pt)
show link: set text(fill: purple.darken(30%))

body
Expand Down

0 comments on commit 922e80a

Please sign in to comment.