diff --git a/pytket/extensions/qsharp/backends/azure_quantum.py b/pytket/extensions/qsharp/backends/azure_quantum.py index 64cddba..4f6da8e 100644 --- a/pytket/extensions/qsharp/backends/azure_quantum.py +++ b/pytket/extensions/qsharp/backends/azure_quantum.py @@ -112,13 +112,13 @@ def __init__( "Try reinstalling a compatible version of pytket." ) from e if resourceId: - config.resourceId = resourceId # type: ignore + config.resourceId = resourceId if location: - config.location = location # type: ignore + config.location = location if storage: - config.storage = storage # type: ignore + config.storage = storage # check required parameters - if any(val is None for val in (config.resourceId, config.location)): # type: ignore + if any(val is None for val in (config.resourceId, config.location)): raise ValueError( "Azure Quantum resourceId and location must be provided as" f" parameter or stored in the config file {get_config_file_path()}" @@ -138,7 +138,7 @@ def __init__( elif e.error_name == "WorkspaceNotFound": raise RuntimeError( "No suitable Azure Quantum workspace found. " - f"Check the resourceId is correct: {config.resourceId}" # type: ignore + f"Check the resourceId is correct: {config.resourceId}" ) else: raise e @@ -150,7 +150,7 @@ def __init__( except StopIteration: raise ValueError( f"Target with id {target_name} " - f"not available at resource {config.resourceId}." # type: ignore + f"not available at resource {config.resourceId}." ) def default_compilation_pass(self, optimisation_level: int = 2) -> BasePass: diff --git a/pytket/extensions/qsharp/backends/config.py b/pytket/extensions/qsharp/backends/config.py index dd86514..5c15f54 100644 --- a/pytket/extensions/qsharp/backends/config.py +++ b/pytket/extensions/qsharp/backends/config.py @@ -47,9 +47,9 @@ def set_azure_config( for your Azure Quantum Workspace. Can be overridden in backend construction.""" config = QSharpConfig.from_default_config_file() if resourceId is not None: - config.resourceId = resourceId # type: ignore + config.resourceId = resourceId if location is not None: - config.location = location # type: ignore + config.location = location if storage is not None: - config.storage = storage # type: ignore + config.storage = storage config.update_default_config_file()