-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete rework of the quantum-circuit() implementation. This includes - Layout algorithm (determine cell sizes, spacing etc.). - Wire code. Importantly, wires are not drawn through gates anymore! Also, wires are now filled to the end. setwire() has been - improved to enable partial stroke changements (e.g., only thickness or paint). - more modular code - Added better error messages
- Loading branch information
Showing
61 changed files
with
837 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#import "../src/quill.typ": * | ||
|
||
#quantum-circuit( | ||
setwire(0), lstick(align(center)[First register\ $t$ qubits], n: 4), lstick($|0〉$), | ||
setwire(0), lstick(align(center)[First register\ $t$ qubits], n: 4, pad: 10.5pt), lstick($|0〉$), | ||
setwire(1), $H$, 4, midstick($ dots $), ctrl(4), rstick($|0〉$), [\ ], 10pt, | ||
setwire(0), phantom(width: 13pt), lstick($|0〉$), setwire(1), $H$, 2, ctrl(3), 1, | ||
midstick($ dots $), 1, rstick($|0〉$), [\ ], | ||
setwire(0), 1, lstick($|0〉$), setwire(1), $H$, 1, ctrl(2), 2, | ||
midstick($ dots $), 1, rstick($|0〉$), [\ ], | ||
setwire(0), 1, lstick($|0〉$), setwire(1), $H$, ctrl(1), 3, midstick($ dots $), 1, | ||
rstick($|0〉$), [\ ], | ||
setwire(0), lstick([Second register], n: 1, brace: "{"), lstick($|u〉$), | ||
setwire(0), lstick([Second register], n: 1, brace: "{", pad: 10.5pt), lstick($|u〉$), | ||
setwire(4, wire-distance: 1.3pt), 1, $ U^2^0 $, $ U^2^1 $, $ U^2^2 $, | ||
1, midstick($ dots $), $ U^2^(t-1) $, rstick($|u〉$) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.