Overview

To view all available command options, use the --help or -h flag:

qbraid chat --help

By default, qBraid chat uses the gpt-4o-mini model. To see a list of all available models, along with their descriptions and pricing, use the --list-models or -l flag:

qbraid chat --list-models

Ask questions by providing the --prompt or -p flag to receive plain-text responses:

qbraid chat --prompt "What is the Schrödinger equation?"

For longer outputs, enable the --stream or -s flag to receive the response in chunks as it streams:

qbraid chat --prompt "What does the Schrödinger equation tell us?" --stream

To query a specific model, use the --model or -m flag:

qbraid chat --model "gpt-4o" --prompt "Write a Qiskit bell circuit"

Jupyter Notebook Coding Assistant

Enhance your workflow by using qBraid chat as an in-line coding assistant directly within a Jupyter Notebook. First, configure magic commands from your shell:

qbraid configure magic

Next, open a notebook, load the qbraid_magic extension, and use the --format or -f flag with the code option to generate raw code responses:

In [1]: %load_ext qbraid_magic

In [2]: %qbraid chat -f code -p "Write a Cirq bell circuit"

The generated code will be automatically inserted into the notebook cell below.

For more details on qBraid chat magic commands, visit the magic commands user guide.

Coming Soon

  • Fine-tuned models specifically designed for quantum computing software development.
  • Contextual awareness tailored to specific environments, notebooks, and projects within qBraid Lab.