Skip to content

Commit

Permalink
expand method naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeisel committed Jan 8, 2024
1 parent 43bc450 commit 455249c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/services/cmgen_services/cmgen_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

def retrieve_executor(provider: str):
provider = provider.lower()
if provider == "ibm":
if provider in ["ibm", "ibmq"]:
return IBMCircuitExecutor()
if provider == "ionq":
return IonQCircuitExecutor()
Expand Down
2 changes: 1 addition & 1 deletion app/services/mitigator_gen_services/mmgen_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


def mitigation_generator(method):
if method == "inversion":
if method.lower() in ["inversion", "matrixinversion"]:
return MatrixInversion()
else:
raise Exception(
Expand Down

0 comments on commit 455249c

Please sign in to comment.