def test_user_mapping_for_memslots(self):
    '\n        Test that the new schedule only has required `MeasureChannel`s and that the\n        `MemorySlot`s are mapped according to the input circuit.\n        '
    q = QuantumRegister(2)
    c = ClassicalRegister(2)
    qc = QuantumCircuit(q, c)
    qc.measure(q[0], c[1])
    sched = schedule(qc, self.backend)
    expected = Schedule(self.cmd_def.get('measure', [0, 1]).filter(channels=[MeasureChannel(0)]), Acquire(duration=10)([AcquireChannel(0), AcquireChannel(1)], [MemorySlot(1), MemorySlot(0)]))
    self.assertEqual(sched.instructions, expected.instructions)
Test that the new schedule only has required `MeasureChannel`s and that the
`MemorySlot`s are mapped according to the input circuit.
def test_user_mapping_for_memslots(self):
    '\n        Test that the new schedule only has required `MeasureChannel`s and that the\n        `MemorySlot`s are mapped according to the input circuit.\n        '
    q = QuantumRegister(2)
    c = ClassicalRegister(2)
    qc = QuantumCircuit(q, c)
    qc.measure(q[0], c[1])
    sched = schedule(qc, self.backend)
    expected = Schedule(self.cmd_def.get('measure', [0, 1]).filter(channels=[MeasureChannel(0)]), Acquire(duration=10)([AcquireChannel(0), AcquireChannel(1)], [MemorySlot(1), MemorySlot(0)]))
    self.assertEqual(sched.instructions, expected.instructions)