Esempio n. 1
0
 def setUp(self):
     super().setUp()
     instruction_durations = InstructionDurations()
     instruction_durations.update(
         [
             ("rz", (0,), 0),
             ("rz", (1,), 0),
             ("x", (0,), 160),
             ("x", (1,), 160),
             ("sx", (0,), 160),
             ("sx", (1,), 160),
             ("cx", (0, 1), 800),
             ("cx", (1, 0), 800),
             ("measure", None, 1600),
         ]
     )
     self.time_conversion_pass = TimeUnitConversion(inst_durations=instruction_durations)
     # reproduce old behavior of 0.20.0 before #7655
     # currently default write latency is 0
     self.scheduling_pass = ALAPSchedule(
         durations=instruction_durations,
         clbit_write_latency=1600,
         conditional_latency=0,
     )
     self.align_measure_pass = AlignMeasures(alignment=16)
 def setUp(self):
     super().setUp()
     instruction_durations = InstructionDurations()
     instruction_durations.update([
         ("rz", (0, ), 0),
         ("rz", (1, ), 0),
         ("x", (0, ), 160),
         ("x", (1, ), 160),
         ("sx", (0, ), 160),
         ("sx", (1, ), 160),
         ("cx", (0, 1), 800),
         ("cx", (1, 0), 800),
         ("measure", None, 1600),
     ])
     self.time_conversion_pass = TimeUnitConversion(
         inst_durations=instruction_durations)
     self.scheduling_pass = ALAPSchedule(durations=instruction_durations)
     self.align_measure_pass = AlignMeasures(alignment=16)