Skip to content

Commit e5094a9

Browse files
committed
remove old inaccurate comments after test fixes
1 parent b41346e commit e5094a9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

test/squin/rewrite/test_U3_to_clifford.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ def test():
279279
s_stmts = filter_statements_by_type(test, (gate.stmts.S,))
280280
sqrt_x_stmts = filter_statements_by_type(test, (gate.stmts.SqrtX,))
281281

282-
# Should be S, SqrtY, S for each op
283282
assert [
284283
type(stmt)
285284
for stmt in filter_statements_by_type(
@@ -351,13 +350,11 @@ def test():
351350
test, (gate.stmts.S, gate.stmts.SqrtY, gate.stmts.SqrtX)
352351
)
353352

354-
# Should be Sdg, SqrtY, S for each op
355353
assert [type(stmt) for stmt in relevant_stmts] == [
356354
gate.stmts.SqrtX,
357355
gate.stmts.SqrtX,
358356
]
359357

360-
# Check adjoint property: the first S in each group should be adjoint
361358
s_stmts = filter_statements_by_type(test, (gate.stmts.S,))
362359
sqrt_x_stmts = filter_statements_by_type(test, (gate.stmts.SqrtX,))
363360

@@ -466,15 +463,13 @@ def test():
466463
test, (gate.stmts.S, gate.stmts.SqrtY, gate.stmts.Z)
467464
)
468465

469-
# Should be Sdag, SqrtY, Z for each op
470466
assert [type(stmt) for stmt in relevant_stmts] == [
471467
gate.stmts.S,
472468
gate.stmts.SqrtY,
473469
gate.stmts.S,
474470
gate.stmts.SqrtY,
475471
]
476472

477-
# Check adjoint property: Sdag should be adjoint, SqrtY and Z should not
478473
s_stmts = filter_statements_by_type(test, (gate.stmts.S,))
479474
sqrt_y_stmts = filter_statements_by_type(test, (gate.stmts.SqrtY,))
480475

@@ -500,7 +495,6 @@ def test():
500495
relevant_stmts = filter_statements_by_type(
501496
test, (gate.stmts.SqrtY, gate.stmts.SqrtX, gate.stmts.S)
502497
)
503-
# Check for SqrtY followed by S (adjoint property can be checked if needed)
504498
assert [type(stmt) for stmt in relevant_stmts] == [
505499
gate.stmts.S,
506500
gate.stmts.SqrtX,
@@ -528,7 +522,6 @@ def test():
528522
assert [type(stmt) for stmt in relevant_stmts] == [
529523
gate.stmts.SqrtX,
530524
]
531-
# The last S should be adjoint
532525
assert not relevant_stmts[0].adjoint
533526

534527

@@ -571,12 +564,10 @@ def test():
571564
test, (gate.stmts.S, gate.stmts.SqrtY, gate.stmts.Z, gate.stmts.SqrtX)
572565
)
573566

574-
# Should be Sdag, SqrtY, Sdag for the op
575567
assert [type(stmt) for stmt in relevant_stmts] == [
576568
gate.stmts.Z,
577569
gate.stmts.SqrtX,
578570
]
579-
# The first and last S should be adjoint, SqrtY should not
580571
assert not relevant_stmts[1].adjoint
581572

582573

0 commit comments

Comments
 (0)