Skip to content

Commit

Permalink
[fix] Rename boolean -> bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Mc-Zen committed Dec 28, 2024
1 parent 1352b07 commit 3e97962
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/gates.typ
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
/// - radius (length, dictionary): Gate rectangle border radius.
/// Allows the same values as the builtin `rect()` function.
/// - width (auto, length): The width of the gate can be specified manually with this property.
/// - box (boolean): Whether this is a boxed gate (determines whether the outgoing
/// - box (bool): Whether this is a boxed gate (determines whether the outgoing
/// wire will be drawn all through the gate (`box: false`) or not).
/// - floating (boolean): Whether the content for this gate will be shown floating
/// - floating (bool): Whether the content for this gate will be shown floating
/// (i.e. no width is reserved).
/// - multi (dictionary): Information for multi-qubit and controlled gates (see @@mqgate() ).
/// - size-hint (function): Size hint function. This function should return a dictionary
Expand Down Expand Up @@ -89,7 +89,7 @@
/// - radius (length, dictionary): Gate rectangle border radius.
/// Allows the same values as the builtin `rect()` function.
/// - width (auto, length): The width of the gate can be specified manually with this property.
/// - box (boolean): Whether this is a boxed gate (determines whether the
/// - box (bool): Whether this is a boxed gate (determines whether the
/// outgoing wire will be drawn all through the gate (`box: false`) or not).
/// - wire-count (int): Wire count for control wires.
/// - inputs (none, array): You can put labels inside the gate to label the input wires with
Expand All @@ -101,7 +101,7 @@
/// - outputs (none, array): Same as `inputs` but for gate outputs.
/// - extent (auto, length): How much to extent the gate beyond the first and
/// last wire, default is to make it align with an X gate (so [size of x gate] / 2).
/// - size-all-wires (none, boolean): A single-qubit gate affects the height of the row
/// - size-all-wires (none, bool): A single-qubit gate affects the height of the row
/// it is being put on. For multi-qubit gate there are different possible
/// behaviours:
/// - Affect height on only the first and last wire (`false`)
Expand Down Expand Up @@ -260,7 +260,7 @@

/// Target element for controlled-Z operations (#sym.bullet).
///
/// - open (boolean): Whether to draw an open dot.
/// - open (bool): Whether to draw an open dot.
/// - fill (none, color): Fill color for the circle or stroke color if
/// `open: true`.
/// - size (length): Size of the control circle.
Expand All @@ -273,7 +273,7 @@
/// Create a phase gate shown as a point on the wire together with a label.
///
/// - label (content): Angle value to display.
/// - open (boolean): Whether to draw an open dot.
/// - open (bool): Whether to draw an open dot.
/// - fill (none, color): Fill color for the circle or stroke color if
/// `open: true`.
/// - size (length): Size of the circle.
Expand Down Expand Up @@ -333,11 +333,11 @@
///
/// - n (int): How many wires up or down the target wire lives.
/// - wire-count (int): Wire count for the control wire.
/// - open (boolean): Whether to draw an open dot.
/// - open (bool): Whether to draw an open dot.
/// - fill (none, color): Fill color for the circle or stroke color if
/// `open: true`.
/// - size (length): Size of the control circle.
/// - show-dot (boolean): Whether to show the control dot. Set this to
/// - show-dot (bool): Whether to show the control dot. Set this to
/// false to obtain a vertical wire with no dots at all.
/// - wire-label (array, str, content, dictionary): One or more labels
/// to add to the control wire. See @@mqgate().
Expand Down
4 changes: 2 additions & 2 deletions src/quantum-circuit.typ
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/// - min-column-width (length): Minimum width of a column.
/// - gate-padding (length): General padding setting including the inset for
/// gate boxes and the distance of @@lstick() and co. to the wire.
/// - equal-row-heights (boolean): If true, then all rows will have the same
/// - equal-row-heights (bool): If true, then all rows will have the same
/// height and the wires will have equal distances orienting on the
/// highest row.
/// - color (color): Foreground color, default for strokes, text, controls
Expand All @@ -49,7 +49,7 @@
/// This setting basically just changes the size of the bounding box
/// for the circuit and can be used to increase it when labels or
/// annotations extend beyond the actual circuit.
/// - fill-wires (boolean): Whether to automatically fill up all wires until the end.
/// - fill-wires (bool): Whether to automatically fill up all wires until the end.
/// - ..children (any): Items, gates and circuit commands (see description).
#let quantum-circuit(
wire: .7pt + black,
Expand Down
4 changes: 2 additions & 2 deletions src/tequila-impl.typ
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
/// - n (auto, int): Number of qubits. Can be inferred automatically.
/// - x (int): Determines at which column the subcircuit will be put in the circuit.
/// - y (int): Determines at which row the subcircuit will be put in the circuit.
/// - append-wire (boolean): If set to `true`, the a last column of outgoing wires will be added.
/// - append-wire (bool): If set to `true`, the a last column of outgoing wires will be added.
/// - ..children (any): Sequence of instructions.
#let build(
n: auto,
Expand Down Expand Up @@ -207,7 +207,7 @@
/// - n (auto, int): Number of qubits. Can be inferred automatically.
/// - x (int): Determines at which column the subcircuit will be put in the circuit.
/// - y (int): Determines at which row the subcircuit will be put in the circuit.
/// - invert (boolean): If set to `true`, the circuit will be inverted, i.e., a circuit for
/// - invert (bool): If set to `true`, the circuit will be inverted, i.e., a circuit for
/// "uncomputing" the corresponding graph state.
/// ..edges (array):
#let graph-state(
Expand Down

0 comments on commit 3e97962

Please sign in to comment.