You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the script below, which just prepares a ground state and measures with a custom measurement pulse, the job fails with no clue as to what the error is 'Job <> has failed:\nUnknown error.'
How can we reproduce the issue?
Running the following
importosimportmatplotlib.pyplotaspltimportnumpyasnpfromqiskitimportQuantumCircuit, pulsefromqiskit.circuitimportGatefromqiskit.pulse.libraryimportGaussianSquarefromqiskit_ibm_runtimeimportQiskitRuntimeService# example executing in cloud simulatorservice=QiskitRuntimeService(
channel="ibm_quantum",
token=os.getenv("IBM_TOKEN"),
)
backend=service.least_busy(open_pulse=True)
# Choose the qubit to targetqubit=0# Measurement pulse parametersmeas_frequency=7.17e9# Hzmeas_amp=0.1# Amplitudemeas_duration=1400# Duration of the measurement pulse in samplesmeasurement_gate_g=Gate("measurement_gate_g", 1, [])
ground_circuit=QuantumCircuit(1, 1)
ground_circuit.append(measurement_gate_g, [0])
# Create the measurement pulsewithpulse.build(backend, name="measurement_g") asmeasurement_schedule_g:
pulse.set_frequency(meas_frequency, pulse.measure_channel(0))
pulse.acquire(1440, 0, pulse.MemorySlot(0))
pulse.play(
GaussianSquare(
duration=1440,
sigma=32,
width=1312,
amp=0.14866999999999997,
angle=2.004274795979154,
name="mg",
),
pulse.measure_channel(0),
name="mg",
)
pulse.delay(1360, pulse.measure_channel(0))
ground_circuit.add_calibration("measurement_gate_g", [qubit], measurement_schedule_g)
job=backend.run(
[ground_circuit],
shots=500,
meas_level=1,
meas_return="single",
)
What should happen?
Either run successfully or provide an informative error message.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered:
Environment
What is happening?
When running the script below, which just prepares a ground state and measures with a custom measurement pulse, the job fails with no clue as to what the error is
'Job <> has failed:\nUnknown error.'
How can we reproduce the issue?
Running the following
What should happen?
Either run successfully or provide an informative error message.
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: