Skip to content

Commit 53669a2

Browse files
committed
add test for len(nodes) in amplitude_before_test
1 parent 8aa2695 commit 53669a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/test_quditcircuit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,3 +444,4 @@ def test_quditcircuit_amplitude_before_wrapper():
444444
c.x(0)
445445
nodes = c.amplitude_before("00")
446446
assert isinstance(nodes, list)
447+
assert len(nodes) == 5 # one gate (X on qudit 0) -> single node in the traced path

0 commit comments

Comments
 (0)