-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
Description
Environment
- Qiskit Terra version: 0.25.0
- Python version: 3.10
- Operating system: Win11
What is happening?
schedule() command fails when the circuit includes 'measure' with the error message
schedule(circuit, backend)
qiskit.pulse.exceptions.PulseError: "Operation 'measure' exists, but is only defined for qubits [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26]."
The command works when specifying the default instruction map
schedule(qc, backend, backend.defaults().instruction_schedule_map, meas_map=backend.configuration().meas_map )
How can we reproduce the issue?
provider = IBMProvider()
qc = QuantumCircuit(1)
qc.h(0)
qc.measure_all() # or qc.measure(0)
# Schedule
qctr = transpile(qc, backend_nisq, initial_layout=None, optimization_level=0)
sch = schedule(qctr, backend)
What should happen?
default instruction and default measure maps should be defaultly taken into account without having to explicitly specify it in the schedule() command
Any suggestions?
No response