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

Qedma function fails on empty circuit #28

Open
nonhermitian opened this issue Nov 4, 2024 · 3 comments
Open

Qedma function fails on empty circuit #28

nonhermitian opened this issue Nov 4, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@nonhermitian
Copy link

Steps to reproduce the problem

N = 6
qc = QuantumCircuit(N)

op = SparsePauliOp('Z'*6)

qesem_function  = catalog.load('qedma/qesem')

qesem_job = qesem_function.run(
    backend_name=backend.name,
    action = "execute",
    instance = backend._instance,
    pubs = pubs,
)

What is the current behavior?

Gives

{'error': 'An unexpected error occurred. Please try again later. If the issue persists, please contact support.'}

What is the expected behavior?

Should work like it does on other circuit functions

@nonhermitian nonhermitian added the bug Something isn't working label Nov 4, 2024
@pandasa123
Copy link
Collaborator

After talking to the internal team, this should actually raise an exception across all circuit functions during the input validation phase

@nonhermitian
Copy link
Author

Why is that? It is a valid circuit, and is useful for testing; it basically verifies if a circuit function can cleanup spam errors.

@nonhermitian
Copy link
Author

This is probably fixed in the same manner as #27 where it is an incompatibility with the standard pubs specification

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

2 participants