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 tousername (
str) – username of the accounttoken (
str) – the token of the accountoverwrite (
bool) – If true, will overwrite any credentials already stored on diskfilename (
Optional[str]) – Full path to the credentials file. IfNone, 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