Skip to content

Check rep_delay value during submission of a job #2387

@NavMohan-24

Description

@NavMohan-24

Describe the bug

Currently, IBM backends do not support rep_delay values less than 20e-6s. However, the runtime client allows users to submit jobs below the minimum value supported. These jobs would eventually fail during execution, raising 6050 errors.

Steps to reproduce

service=QiskitRuntimeService(channel='ibm_quantum_platform')
backend = service.backend("ibm_brisbane")

num_circuits = 2

qc = QuantumCircuit(2)
qc.x(0)
qc.x(1)
qc.measure_all()

pm = generate_preset_pass_manager(optimization_level=3,backend=backend)
tqc = pm.run([qc]*2)

sampler = Sampler(mode=backend)
sampler.options.execution.rep_delay = 0
job = sampler.run(pubs=tqc,shots=10)
print(job.result())

Returns the following error message while retrieving the job results:

RuntimeJobFailureError: 'Unable to retrieve job result. Error code 6050; Failed to execute program: Input Error: Rep delay 0 outside of valid range 0.000019999999999999998 - 0.0005

Suggested solutions
It would be good to validate the rep_delay value before sending the job to the backend. Allow jobs where rep_delay falls within the backend.rep_delay_range.

Additional Information

  • qiskit-ibm-runtime version: 0.41.1
  • Python version: 3.13.2
  • Operating system: MacOS Sequia 15.6

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions