Version 0.3.0 (May 20, 2024)
This release contains a complete rewrite of the layout algorithm, finally allowing for transparent gates. Also, it is now possible to place gates and co. explicitly, similar to table.cell()
.
Changelog:
- New features
- Enable manual placement of gates,
gate($X$, x: 3, y: 1)
, similar to built-intable()
in addition to automatic placement. This works for most elements, not only gates. - Add parameter
pad
tolstick()
andrstick()
. - Add parameter
fill-wires
toquantum-circuit()
. All wires are filled unto the end (determined by the longest wire) by default (breaking change⚠️ ). This behavior can be reverted by settingfill-wires: false
. gategroup()
slice()
andannotate()
can now be placed above or below the circuit withz: "above"
andz: "below"
.help()
command for quickly displaying the documentation of a given function, e.g.,help("gate")
. Powered by [tidy][tidy].
- Enable manual placement of gates,
- Improvements:
- Complete rework of circuit layout implementation
- allows transparent gates since wires are not drawn through gates anymore. The default fill is now
auto
and usingnone
sets the background to transparent. midstick
is now transparent by default.
- allows transparent gates since wires are not drawn through gates anymore. The default fill is now
setwire()
can now be used to override only partial wire settings, such as wire colorsetwire(1, stroke: blue)
, widthsetwire(1, stroke: 1pt)
or wire distance, all separately. Before, some settings were reset.
- Complete rework of circuit layout implementation
- Fixes:
- Fixed
lstick
/rstick
when equation numbering is turned on.
- Fixed
- Removed:
- The already deprecated
scale-factor
(usescale
instead)
- The already deprecated