Skip to content

Commit

Permalink
Remove qpic diagram test for decomposition since its not DAMP
Browse files Browse the repository at this point in the history
  • Loading branch information
tanujkhattar committed Jul 6, 2024
1 parent c74b57f commit 12c3528
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions qualtran/drawing/qpic_diagram_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,48 +37,5 @@ def test_qpic_data_for_reflect_using_prepare():
selection / \textrm{\scalebox{0.5}{BoundedQUInt(2, 4)}}
LABEL length=10
selection G:width=17:shape=box \textrm{\scalebox{0.8}{R\_L}}
""",
)

_assert_bloq_has_qpic_diagram(
bloq.decompose_bloq(),
r"""
DEFINE off color=white
DEFINE on color=black
_empty_wire W off
selection W \textrm{\scalebox{0.8}{selection}}
selection / \textrm{\scalebox{0.5}{BoundedQUInt(2, 4)}}
LABEL length=10
reg W off
reg_1 W off
reg_2 W off
reg_3 W off
reg[0] W off
reg[1] W off
reg_4 W off
_empty_wire G:width=65:shape=8 GPhase((-0-1j))
reg:on G:width=25:shape=box \textrm{\scalebox{0.8}{alloc}}
reg / \textrm{\scalebox{0.5}{QAny(2)}}
reg_1:on G:width=25:shape=box \textrm{\scalebox{0.8}{alloc}}
reg_1 / \textrm{\scalebox{0.5}{QAny(2)}}
reg_2:on G:width=25:shape=box \textrm{\scalebox{0.8}{alloc}}
reg_2 / \textrm{\scalebox{0.5}{QAny(2)}}
reg_3:on G:width=25:shape=box \textrm{\scalebox{0.8}{alloc}}
reg_3 / \textrm{\scalebox{0.5}{QAny(1)}}
selection G:width=121:shape=box \textrm{\scalebox{0.8}{StatePreparationAliasSampling}} reg G:width=37:shape=box \textrm{\scalebox{0.8}{sigma\_mu}} reg_1 G:width=17:shape=box \textrm{\scalebox{0.8}{alt}} reg_2 G:width=21:shape=box \textrm{\scalebox{0.8}{keep}} reg_3 G:width=65:shape=box \textrm{\scalebox{0.8}{less\_than\_equal}}
selection:off G:width=5:shape=> \textrm{\scalebox{0.8}{}} reg[0]:on G:width=17:shape=box \textrm{\scalebox{0.8}{[0]}} reg[1]:on G:width=17:shape=box \textrm{\scalebox{0.8}{[1]}}
reg_4:on G:width=25:shape=box \textrm{\scalebox{0.8}{alloc}}
reg_4 / \textrm{\scalebox{0.5}{QAny(1)}}
+reg_4
reg_4 G:width=9:shape=box \textrm{\scalebox{0.8}{Z}} -reg[0] -reg[1]
+reg_4
reg_4:off G:width=21:shape=box \textrm{\scalebox{0.8}{free}}
reg[0]:off G:width=17:shape=box \textrm{\scalebox{0.8}{[0]}} reg[1]:off G:width=17:shape=box \textrm{\scalebox{0.8}{[1]}} reg_4:on G:width=5:shape=< \textrm{\scalebox{0.8}{}}
reg_4 / \textrm{\scalebox{0.5}{BoundedQUInt(2, 4)}}
reg_4 G:width=121:shape=box \textrm{\scalebox{0.8}{StatePreparationAliasSampling}} reg G:width=37:shape=box \textrm{\scalebox{0.8}{sigma\_mu}} reg_1 G:width=17:shape=box \textrm{\scalebox{0.8}{alt}} reg_2 G:width=21:shape=box \textrm{\scalebox{0.8}{keep}} reg_3 G:width=65:shape=box \textrm{\scalebox{0.8}{less\_than\_equal}}
reg:off G:width=21:shape=box \textrm{\scalebox{0.8}{free}}
reg_1:off G:width=21:shape=box \textrm{\scalebox{0.8}{free}}
reg_2:off G:width=21:shape=box \textrm{\scalebox{0.8}{free}}
reg_3:off G:width=21:shape=box \textrm{\scalebox{0.8}{free}}
""",
)

0 comments on commit 12c3528

Please sign in to comment.