FoundryProductsTechnologyCompanyInvestor relationsResource libraryNews
Contact us
Resource library
    Introduction to Dirac-3 home
    Dirac-3 Developer Beginner Guide
    Dirac-3 user guide
    Dirac-3 spec sheet
    Entropy Quantum Computing overview
    Multibody formulation
    qci-client software package
      Getting Started
      Basic Usage
      qci-client
      Dependencies
      Index
      Module Index
    eqc-direct software package

Couldn’t find what you are looking for? Reach out to technical support.

Contact support
Privacy PolicyCookie PolicyTerms of UseForward Looking StatementsAccessibility Statement
Terms and Conditions of SaleEnd User License Agreement

© 2018-2026 Quantum Computing Inc.

Download

Basic Usage

Instantiating a Client for Optimization Work

Without Environment Variables

Instantiate a qci_client.QciClient for QCi’s production server with your secret API token string as follows—

  • # An alias for `from qci_client.optimization.client import OptimizationClient as QciClient`.
  • from qci_client import QciClient
  • client = QciClient(url="https://api.qci-prod.com", api_token="<secret_token>")
Warning
Be careful not to accidentally share your secret API token when sharing code.

With Environment Variables

To access the API using environment variables, set the following—

  • QCI_API_URL - URL string for the Qatalyst API. Example: “https://api.qci-prod.com”
  • QCI_TOKEN - Secret API token string for securely accessing the Qatalyst API.

then instantiate a qci_client.QciClient as follows—

  • # An alias for `from qci_client.optimization.client import OptimizationClient as QciClient`.
  • from qci_client import QciClient
  • client = QciClient()
Previous page
Next page

Content

  • Basic Usage
  • Instantiating a Client for Optimization Work
  • Without Environment Variables
  • With Environment Variables