Skip to content

Commit

Permalink
cleanup backend helper
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhermitian committed Oct 22, 2024
1 parent d1ab2b6 commit 2ebb5bd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions mthree/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"""
Helper functions
"""
from qiskit.providers import BackendV2
from qiskit_ibm_runtime import IBMBackend
from mthree.exceptions import M3Error


def system_info(backend):
Expand All @@ -37,10 +34,7 @@ def system_info(backend):
info_dict["simulator"] = config.simulator
if "fake" in backend.name:
info_dict["simulator"] = True
# On IBM systems it is max_experiments, on other stuff it might be max_circuits
max_circuits = getattr(config, "max_experiments", None)
if max_circuits is None:
max_circuits = getattr(config, "max_circuits", 1)
max_circuits = getattr(config, "max_experiments", 1)
if config.simulator:
max_circuits = 1024
info_dict["max_circuits"] = max_circuits
Expand Down

0 comments on commit 2ebb5bd

Please sign in to comment.