I'd like to submit and retrieve many Azure-quantum jobs with python scripts executed at the command line, without a Jupyter notebook.
The standard method to authenticate with Azure consists of the following sequence
from azure.quantum.qiskit import AzureQuantumProvider
provider = AzureQuantumProvider (
resource_id = "/subscriptions/2…93c1/resourceGroups/AzureQuantum/providers/Microsoft.Quantum/Workspaces/xxx",
location = "eastus"
backend = provider.get_backend('ionq.qpu.aria-1')
The last command always triggers a unique authentication via local browser
It takes a lot of clicking and the credentials are lost after script finishes.
Is there a way to persistently store those credentials locally to be reused by the subsequent call to azure-quantum service?
I'm looking for a solution similar to IBMQ.load_account() or MemoryCredentialStorage() working with QuantinuumAPI() Thanks Jan