Module qcs_api_client_common::configuration

source ·
Expand description

This module is used for loading configuration that will be used to connect either to real QPUs (and supporting services) or the QVM.

By default, all settings are loaded from files located under your home directory in the .qcs folder. Within that folder:

  • settings.toml will be used to load general settings (e.g. which URLs to connect to).
  • secrets.toml will be used to load tokens for authentication.

Both files should contain profiles. Your settings should contain a default_profile_name that determines which profile is loaded when no other profile is explicitly provided.

If you don’t have either of these files, see the QCS credentials guide for details on how to obtain them.

You can use environment variables to override values in your configuration:

The ClientConfiguration exposes an API for loading and accessing your configuration.

Structs§

Enums§

Constants§

Traits§