QCS Client Configuration

Details on environment configuration for QCS clients.

One set of configuration values is used for all QCS software on your computer - CLI, pyQuil, all SDKs, etc. Those settings can be applied using a configuration file, environment variables, or at runtime by editing the configuration object in your chosen language's SDK.

Download your personal secrets.toml and settings.toml files at https://qcs.rigetti.com/auth/token

QCS Settings and Secrets files are automatically downloaded and configured when using the QCS CLI Client. See Using the QCS CLI for more information.

JupyterLab environments are preconfigured.

See also PyQuil Configuration.

Environment Variables and Configuration Files

QCS clients derive configuration from the environment:

  • QCS_PROFILE_NAME

    • Name of settings profile to use (optional)

  • QCS_SETTINGS_PATH or QCS_SETTINGS_FILE_PATH

    • File path to API configurations options toml file, default is ~/.qcs/settings.toml

  • QCS_SECRETS_PATH or QCS_SECRETS_FILE_PATH

    • File path to API authentication token toml file, default is ~/.qcs/secrets.toml

  • QCS_SETTINGS_APPLICATIONS_PYQUIL_QVM_URL

    • URL to use for QVM when running pyQuil, default is http://127.0.0.1:5000

  • QCS_SETTINGS_APPLICATIONS_PYQUIL_QUILC_URL

    • URL to use for quilc when running pyQuil, default is tcp://127.0.0.1:5555

QCS Settings File

A toml -formatted file with configuration details for using QCS Clients.

An annotated example:

QCS Secrets File

A toml -formatted file with credentials for authenticating with QCS clients. You shouldn't have to create or edit this file manually - if your file is corrupted, download a new copy at https://qcs.rigetti.com/auth/token

Note that this file contains secrets and should be kept safe!

Last updated

Was this helpful?