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

Raise an error when non supported gate is used #1436

Closed
willsimmons-1 opened this issue Feb 28, 2024 · 1 comment
Closed

Raise an error when non supported gate is used #1436

willsimmons-1 opened this issue Feb 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@willsimmons-1
Copy link

What is the expected feature or enhancement?

When submitting a circuit, gates can be used which are not supported by the hardware upon which they would like the circuit is submitted to be run. This can occur when the skip-transpile option is specified, or the circuit is transpiled for the incorrect backend.

Example:

example_circuit = QuantumCircuit(5)
example_circuit.h(1)
example_circuit.measure_all()

backend = service.backend("ibm_kyiv")

options = Options(optimization_level=0)
job = Sampler(backend, options=options).run(example_circuit, skip_transpilation=True)

The request here is to have some checking in the provider to ensure the gates to be run are supported by the backend.

Acceptance criteria

Return an error to the user when run is called on a backend does not support the gate being used in the circuit.

@willsimmons-1 willsimmons-1 added the enhancement New feature or request label Feb 28, 2024
@willsimmons-1 willsimmons-1 changed the title Raise an error when non-native gate is used with skip-transpile=True Raise an error when non supported gate is used Feb 28, 2024
@jyu00
Copy link
Collaborator

jyu00 commented Mar 6, 2024

Done in #1437

@jyu00 jyu00 closed this as completed Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants