def test_circuit_name_kept(self):
    'Test that the new schedule gets its name from the circuit.'
    q = QuantumRegister(2)
    c = ClassicalRegister(2)
    qc = QuantumCircuit(q, c, name='CIRCNAME')
    qc.cx(q[0], q[1])
    sched = schedule(qc, self.backend, method='asap')
    self.assertEqual(sched.name, qc.name)
    sched = schedule(qc, self.backend, method='alap')
    self.assertEqual(sched.name, qc.name)
Test that the new schedule gets its name from the circuit.
def test_circuit_name_kept(self):
    
    q = QuantumRegister(2)
    c = ClassicalRegister(2)
    qc = QuantumCircuit(q, c, name='CIRCNAME')
    qc.cx(q[0], q[1])
    sched = schedule(qc, self.backend, method='asap')
    self.assertEqual(sched.name, qc.name)
    sched = schedule(qc, self.backend, method='alap')
    self.assertEqual(sched.name, qc.name)