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

Commit

Permalink
Adjust delays to include padded duration
Browse files Browse the repository at this point in the history
  • Loading branch information
dieris committed Jan 9, 2024
1 parent 832d18e commit 9475076
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions test/unit/transpiler/passes/scheduling/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1936,23 +1936,16 @@ def test_transpile_both_paths(self):

qr = QuantumRegister(7, name="q")
expected = QuantumCircuit(qr, cr)
expected.delay(24080, qr[1])
expected.delay(24080, qr[2])
expected.delay(24080, qr[3])
expected.delay(24080, qr[4])
expected.delay(24080, qr[5])
expected.delay(24080, qr[6])
for q_ind in range(1, 7):
expected.delay(24240, qr[q_ind])
expected.measure(qr[0], cr[0])
with expected.if_test((cr[0], 1)):
expected.x(qr[0])
with expected.if_test((cr[0], 1)):
expected.delay(160, qr[0])
expected.x(qr[1])
expected.delay(160, qr[2])
expected.delay(160, qr[3])
expected.delay(160, qr[4])
expected.delay(160, qr[5])
expected.delay(160, qr[6])
for q_ind in range(7):
if q_ind != 1:
expected.delay(160, qr[q_ind])
self.assertEqual(expected, scheduled)

def test_c_if_plugin_conversion_with_transpile(self):
Expand Down

0 comments on commit 9475076

Please sign in to comment.