Qiskit Practice
kibrahim757 66 questions

Qiskit v2.x mock exam

Select one answer per question. Submit to see the explanation.

Question 34 / 66
What's wrong with this batch execution code?
from qiskit_ibm_runtime import Batch, SamplerV2 as Sampler

# Create batch
batch = Batch(backend=backend, max_time="5m")
sampler = Sampler(mode=batch)

# Submit some jobs
job1 = sampler.run([circuit1])
job2 = sampler.run([circuit2])

# Close batch
batch.close()

# Try to submit another job
job3 = sampler.run([circuit3])