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

Commit

Permalink
Update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
taalexander committed Jan 26, 2023
1 parent dab0325 commit 181145f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/transpiler/passes/scheduling/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1746,9 +1746,9 @@ def test_transpile_mock_backend(self):
cr = ClassicalRegister(2)

qc = QuantumCircuit(qr, cr)
with qc.while_loop((cr, 1)):
with qc.while_loop((cr[0], 1)):
qc.x(qr[2])
with qc.if_test((cr[1], 1)):
with qc.if_test((cr[0], 1)):
qc.x(qr[1])
qc.x(qr[0])

Expand All @@ -1764,8 +1764,8 @@ def test_transpile_mock_backend(self):

qr = QuantumRegister(7, name="q")
expected = QuantumCircuit(qr, cr)
with expected.while_loop((cr, 1)):
with expected.if_test((cr[1], 1)):
with expected.while_loop((cr[0], 1)):
with expected.if_test((cr[0], 1)):
expected.delay(160, qr[0])
expected.x(qr[1])
expected.delay(160, qr[2])
Expand Down

0 comments on commit 181145f

Please sign in to comment.