Login/logout
import json
import qcs
# Login user
# If you're not yet logged in, this will open a browser window and ask you to login.
# If you're already logged in another QCS application, you won't need to login again.
# Tokens are encrypted and stored in:
# - Windows: `%LOCALAPPDATA%\Quarisma\.qcs-tokens`
# - Linux/macOS: `~/.qcs-tokens`
# Prints the email of the logged in user if successful
qcs.auth.login()
# Get and print user info
user_info = qcs.auth.user_info()
print(json.dumps(user_info, indent=2))
# If you want to logout and remove the tokens from local machine
# qcs.auth.logout()