Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown Error with job submitted to an open_pulse backend #1693

Closed
jccalvojackson opened this issue May 20, 2024 · 1 comment
Closed

Unknown Error with job submitted to an open_pulse backend #1693

jccalvojackson opened this issue May 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jccalvojackson
Copy link

jccalvojackson commented May 20, 2024

Environment

  • Qiskit version: 1.1.0
  • Python version: 3.11
  • Operating system: macos

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

import os
import matplotlib.pyplot as plt
import numpy as np
from qiskit import QuantumCircuit, pulse
from qiskit.circuit import Gate
from qiskit.pulse.library import GaussianSquare
from qiskit_ibm_runtime import QiskitRuntimeService

# example executing in cloud simulator
service = QiskitRuntimeService(
    channel="ibm_quantum",
    token=os.getenv("IBM_TOKEN"),
)
backend = service.least_busy(open_pulse=True)

# Choose the qubit to target
qubit = 0


# Measurement pulse parameters
meas_frequency = 7.17e9  # Hz
meas_amp = 0.1  # Amplitude
meas_duration = 1400  # Duration of the measurement pulse in samples

measurement_gate_g = Gate("measurement_gate_g", 1, [])

ground_circuit = QuantumCircuit(1, 1)
ground_circuit.append(measurement_gate_g, [0])


# Create the measurement pulse
with pulse.build(backend, name="measurement_g") as measurement_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

@jccalvojackson jccalvojackson added the bug Something isn't working label May 20, 2024
@mtreinish mtreinish transferred this issue from Qiskit/qiskit May 20, 2024
@wshanks
Copy link
Collaborator

wshanks commented May 20, 2024

@jccalvojackson I tried running this and it ran without error for me. What was the backend and what was the job ID?

@kt474 kt474 closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants