Skip to content

Commit

Permalink
Fix mistake in check for valid backend_id
Browse files Browse the repository at this point in the history
  • Loading branch information
rtvuser1 committed Sep 28, 2024
1 parent ae09fd1 commit 0d32900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _common/cudaq/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def set_execution_target(backend_id=None, provider_backend=None,
global backend

# in case anyone uses a name similar to that used in other APIs
if backend_id != "cudaq_simulator":
if backend_id == "cudaq_simulator":
backend_id = None

# default to nvidia execution engine if None passed in
Expand Down

0 comments on commit 0d32900

Please sign in to comment.