# qci_client

qci-client package.

class qci_client.JobStatus(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

  Bases: `Enum`

  Enumeration of all jobs statuses, where values match jobs API values.

  SUBMITTED = 'SUBMITTED'
  QUEUED = 'QUEUED'
  RUNNING = 'RUNNING'
  COMPLETED = 'COMPLETED'
  ERRORED = 'ERRORED'
  CANCELLED = 'CANCELLED'

qci_client.QciClient

  alias of `OptimizationClient`

# qci_client.utilities

Package-wide utilities.

qci_client.utilities.raise_for_status(*, response: Response) → None

  Wrap requests method of same name to include response text in exception message.

  Parameters:

    response – a response from any API call using the requests package

qci_client.utilities.log_to_console(*, log: str, verbose: bool = True) → None

  If verbose is true, then print log with timestamp prefix.

qci_client.utilities.now_utc_ms() → str

  Get current time in UTC with microsecond (i.e., maximum) precision.