Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: update circuit drawing #846

Merged
merged 70 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
22041b7
replace control symbols
jcjaskula-aws Dec 1, 2023
57ad5f9
use box drawing characters
jcjaskula-aws Nov 30, 2023
90be4f8
fix tests
jcjaskula-aws Dec 22, 2023
36f6a79
switch to large b/w circle
jcjaskula-aws Dec 24, 2023
aae35ff
first attempt to box symbols
jcjaskula-aws Dec 26, 2023
13d6928
fix single qubit circuit
jcjaskula-aws Dec 26, 2023
8fc586b
rewrite first tests
jcjaskula-aws Dec 27, 2023
1ef0bf2
first try to draw verbatim box
jcjaskula-aws Dec 27, 2023
5e63a37
revamp verbatim box
jcjaskula-aws Dec 27, 2023
50a4957
update tests and skip outdated
jcjaskula-aws Dec 27, 2023
f976a00
modify last test
jcjaskula-aws Dec 27, 2023
ab97d5b
fix connections
jcjaskula-aws Dec 27, 2023
5cf1e76
fix linter
jcjaskula-aws Dec 27, 2023
1cafb01
update more tests
jcjaskula-aws Dec 27, 2023
de9fa6d
update verbatix box tests
jcjaskula-aws Dec 27, 2023
a1fefe6
update last tests, left 6 xfail
jcjaskula-aws Dec 27, 2023
dd0f222
remove margin
jcjaskula-aws Dec 27, 2023
5a40951
add connecting edges
jcjaskula-aws Dec 27, 2023
d563c78
code coverage
jcjaskula-aws Dec 27, 2023
28aeb32
finish code coverage
jcjaskula-aws Dec 27, 2023
a1b83c4
decomplexify
jcjaskula-aws Dec 27, 2023
950a764
Merge branch 'main' into jcjaskula-aws/update-ascii-diagram
jcjaskula-aws Dec 27, 2023
34ceccf
add xfail test
jcjaskula-aws Dec 27, 2023
9fcd08d
move AsciiDiagram to BoxDrawingDiagram
jcjaskula-aws Dec 27, 2023
d627658
keep ascii diagrams as legacy
jcjaskula-aws Dec 27, 2023
a1c44fe
add default_diagram_builder field
jcjaskula-aws Dec 27, 2023
3db7791
replace back circles by C/N
jcjaskula-aws Dec 27, 2023
ec8e6f3
remove duplicate code
jcjaskula-aws Dec 27, 2023
fffb6e2
more simplification
jcjaskula-aws Dec 28, 2023
ebfa989
add comment
jcjaskula-aws Dec 28, 2023
fbf4d83
add back build_diagram for readibilty
jcjaskula-aws Dec 28, 2023
c876b51
use a _build_box method
jcjaskula-aws Dec 28, 2023
a1d056f
simplify _build_parameters
jcjaskula-aws Dec 28, 2023
a6fe529
remove unnecessary code
jcjaskula-aws Dec 28, 2023
24073a0
mutualize create_output
jcjaskula-aws Dec 28, 2023
fcca356
add another xfail test
jcjaskula-aws Dec 28, 2023
44f3e20
fix linters
jcjaskula-aws Dec 28, 2023
3515dba
fix misalignment
jcjaskula-aws Dec 28, 2023
8628ab8
fix linters
jcjaskula-aws Dec 28, 2023
bf71647
cleanup
jcjaskula-aws Dec 28, 2023
75bbda3
make _fill_symbol private
jcjaskula-aws Dec 28, 2023
997a7f7
clean an branching condition
jcjaskula-aws Dec 28, 2023
7a9771e
draw swap gates with x
jcjaskula-aws Jan 19, 2024
6bb46eb
Merge branch 'main' into jcjaskula-aws/update-ascii-diagram
jcjaskula-aws Jan 19, 2024
4f363a3
remove commented tests
jcjaskula-aws Jan 19, 2024
5f0e633
clean implementation
jcjaskula-aws Jan 19, 2024
5fe7ed1
keep AsciiCircuitDiagram as default for now
jcjaskula-aws Jan 25, 2024
f7a456f
Merge branch 'main' into jcjaskula-aws/update-ascii-diagram
speller26 Feb 2, 2024
a783c6f
Merge branch 'main' into jcjaskula-aws/update-ascii-diagram
jcjaskula-aws Feb 23, 2024
4b10593
reorganize class structure
jcjaskula-aws Feb 23, 2024
5da631b
fix docstring
jcjaskula-aws Feb 23, 2024
70b9791
make class-specific method explicit
jcjaskula-aws Feb 23, 2024
9f94654
fix linters
jcjaskula-aws Feb 23, 2024
60bbc56
fix typos
jcjaskula-aws Feb 23, 2024
3ded311
remove forgotten argument
jcjaskula-aws Feb 23, 2024
fad61cb
use a utilities class
jcjaskula-aws Feb 23, 2024
cba7e70
do not use a TextCircuitDiagramUtilities
jcjaskula-aws Feb 23, 2024
8aaf579
rename methods
jcjaskula-aws Feb 23, 2024
cafbf13
rename to text_circuit_diagram_utils
jcjaskula-aws Feb 23, 2024
ac9680b
Merge branch 'main' into jcjaskula-aws/update-ascii-diagram
jcjaskula-aws Feb 26, 2024
a5d2cf0
use cls var
jcjaskula-aws Feb 26, 2024
096677d
first changes according to PR feedback
jcjaskula-aws Feb 27, 2024
0ee9ab7
Attempt at simplification (#898)
krneta Mar 1, 2024
e4df2ab
add docstrings and rename box_drawing_circuit_diagram after merge
jcjaskula-aws Mar 1, 2024
6d649a8
standardize type hints of _draw_symbol
jcjaskula-aws Mar 1, 2024
944ded7
Merge branch 'main' into jcjaskula-aws/update-ascii-diagram
jcjaskula-aws Mar 1, 2024
df02346
Merge branch 'main' into jcjaskula-aws/update-ascii-diagram
jcjaskula-aws Mar 1, 2024
8a1c0bb
small changes according to PR feedback.
jcjaskula-aws Mar 5, 2024
17307a2
Merge branch 'main' into jcjaskula-aws/update-ascii-diagram
jcjaskula-aws Mar 5, 2024
af08fe7
change a staticmethod to a classmethod
jcjaskula-aws Mar 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/braket/circuits/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
result_types,
)
from braket.circuits.angled_gate import AngledGate, DoubleAngledGate # noqa: F401
from braket.circuits.ascii_circuit_diagram import AsciiCircuitDiagram # noqa: F401
from braket.circuits.circuit import Circuit # noqa: F401
from braket.circuits.circuit_diagram import CircuitDiagram # noqa: F401
from braket.circuits.compiler_directive import CompilerDirective # noqa: F401
Expand All @@ -38,3 +37,9 @@
from braket.circuits.qubit import Qubit, QubitInput # noqa: F401
from braket.circuits.qubit_set import QubitSet, QubitSetInput # noqa: F401
from braket.circuits.result_type import ObservableResultType, ResultType # noqa: F401
from braket.circuits.text_diagram_builders.ascii_circuit_diagram import ( # noqa: F401
AsciiCircuitDiagram,
)
from braket.circuits.text_diagram_builders.unicode_circuit_diagram import ( # noqa: F401
UnicodeCircuitDiagram,
)
Loading