Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fix test_insert_dd_ghz_everywhere
Browse files Browse the repository at this point in the history
apply DD also on initial delays if skip_reset_qubits = False
  • Loading branch information
dieris committed Jan 22, 2024
1 parent 1e426fe commit 19a51f0
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,17 @@ def test_insert_dd_ghz_everywhere(self):
expected = expected.compose(YGate(), [1])
expected = expected.compose(Delay(50), [1])

expected = expected.compose(Delay(750), [2], front=True)
expected = expected.compose(Delay(950), [3], front=True)
expected = expected.compose(Delay(162), [2], front=True)
expected = expected.compose(YGate(), [2], front=True)
expected = expected.compose(Delay(326), [2], front=True)
expected = expected.compose(YGate(), [2], front=True)
expected = expected.compose(Delay(162), [2], front=True)

expected = expected.compose(Delay(212), [3], front=True)
expected = expected.compose(YGate(), [3], front=True)
expected = expected.compose(Delay(426), [3], front=True)
expected = expected.compose(YGate(), [3], front=True)
expected = expected.compose(Delay(212), [3], front=True)

self.assertEqual(ghz4_dd, expected)

Expand Down

0 comments on commit 19a51f0

Please sign in to comment.