Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmckayibm committed Sep 28, 2024
1 parent 0098ea1 commit f72b1c0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions test/library/calibration/test_fine_amplitude.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def test_xp(self):
amp_cal = FineXAmplitude([0])
circs = amp_cal.circuits()

self.assertTrue(circs[0].data[0][0].name == "measure")
self.assertTrue(circs[1].data[0][0].name == "x")
self.assertTrue(circs[0].data[0].operation.name == "measure")
self.assertTrue(circs[1].data[0].operation.name == "x")

for idx, circ in enumerate(circs[2:]):
self.assertTrue(circ.data[0][0].name == "sx")
Expand Down
2 changes: 1 addition & 1 deletion test/library/calibration/test_fine_drag.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def test_circuits(self):
drag.backend = FakeArmonkV2()
for circuit in drag.circuits()[1:]:
for idx, name in enumerate(["Drag", "rz", "Drag", "rz"]):
self.assertEqual(circuit.data[idx][0].name, name)
self.assertEqual(circuit.data[idx].operation.name, name)

def test_end_to_end(self):
"""A simple test to check if the experiment will run and fit data."""
Expand Down
4 changes: 2 additions & 2 deletions test/library/calibration/test_rabi.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ def test_ef_rabi_circuit(self):
pulse.shift_frequency(-anharm, pulse.DriveChannel(2))

self.assertEqual(circ.calibrations["Rabi"][((2,), (0.5,))], expected)
self.assertEqual(circ.data[0][0].name, "x")
self.assertEqual(circ.data[1][0].name, "Rabi")
self.assertEqual(circ.data[0].operation.name, "x")
self.assertEqual(circ.data[1].operation.name, "Rabi")

def test_experiment_config(self):
"""Test converting to and from config works"""
Expand Down
4 changes: 2 additions & 2 deletions test/library/characterization/test_qubit_spectroscopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ def test_spectroscopy12_end2end_classified(self):

# Test the circuits
circ = spec.circuits()[0]
self.assertEqual(circ.data[0][0].name, "x")
self.assertEqual(circ.data[1][0].name, "Spec")
self.assertEqual(circ.data[0].operation.name, "x")
self.assertEqual(circ.data[1].operation.name, "Spec")

def test_experiment_config(self):
"""Test converting to and from config works"""
Expand Down

0 comments on commit f72b1c0

Please sign in to comment.