ColdAtomProvider.save_account

static ColdAtomProvider.save_account(url, username, token, overwrite=False, filename=None)[source]

Save credentials to a file locally

Parameters:
  • url (Union[str, List[str]]) – The url(s) of the backends(s) to connect to

  • username (str) – username of the account

  • token (str) – the token of the account

  • overwrite (bool) – If true, will overwrite any credentials already stored on disk

  • filename (Optional[str]) – Full path to the credentials file. If None, the default location is used ($HOME/.qiskit/cold_atom_credentials).

Raises:

OSError – If there is a race condition when creating the directory for the credentials if it does not already exist.

Return type:

None