Skip to content

Commit

Permalink
Defensive programming.
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandMacDoland committed Jun 27, 2024
1 parent 4f2705b commit c545367
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qadence/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def _supported_gates(backend_name: str) -> list[TAbstractBlock]:
"""Return a list of supported gates for the queried backend 'name'."""
from qadence import operations

backend_name = BackendName(backend_name) # Validate backend name.
module_path = f"qadence.backends.{backend_name}"

try:
Expand Down

0 comments on commit c545367

Please sign in to comment.