Skip to content

Commit

Permalink
Revert "measure in test"
Browse files Browse the repository at this point in the history
This reverts commit 6dc9b07.
  • Loading branch information
actions-user committed Aug 19, 2024
1 parent 6dc9b07 commit 4699420
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/platform/test_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def get_calibration():
return calibration

@pytest.fixture(name="anneal_qprogram")
def get_anneal_qprogram(runcard):
def get_anneal_qprogram(runcard, calibration):
platform = Platform(runcard=runcard)
anneal_waveforms = {
"phix_q0": (
Expand All @@ -138,13 +138,11 @@ def get_anneal_qprogram(runcard):
),
}
averages = 2
readout = Square(1.0, 2000)
weights = IQPair(Square(1.0, 2000), Square(1.0, 2000))
qp_anneal = QProgram()
with qp_anneal.average(averages):
for bus, waveform in anneal_waveforms.values():
qp_anneal.play(bus=bus.alias, waveform=waveform)
qp_anneal.measure(bus="readout_bus", waveform=readout, weights=weights)
qp_anneal.measure(bus="readout_bus", name="readout", weights="optimal_weights")
return qp_anneal


Expand Down

0 comments on commit 4699420

Please sign in to comment.