# Fire Opal plugin commands

> Every Fire Opal plugin command, what it runs, and which providers support it

Source: https://docs.q-ctrl.com/agent-resources/plugins/fire-opal-plugin-commands

The Fire Opal plugin for Claude Code has the commands below. To install it, read [Get started with the Fire Opal plugin for Claude Code](https://docs.q-ctrl.com/agent-resources/plugins/get-started-with-the-fire-opal-plugin-for-claude-code.md).

## Commands

| Command                                                                 | What it does                                                                                                    | Uses hardware time |
| ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ------------------ |
| `/fire-opal-mcp:setup`                                                  | Signs you in, checks your organization's Fire Opal access, and saves hardware credentials                       | No                 |
| `/fire-opal-mcp:devices [credential]`                                   | Lists the backends Fire Opal supports for your credentials                                                      | No                 |
| `/fire-opal-mcp:validate <circuits> [backend]`                          | Checks circuits against Fire Opal's requirements                                                                | No                 |
| `/fire-opal-mcp:run <circuits> [backend] [shots]`                       | Checks and runs circuits, waits for the job, and summarizes the bitstring probabilities                         | Yes                |
| `/fire-opal-mcp:expectation <circuits> <observables> [backend] [shots]` | Estimates expectation values, with standard deviations                                                          | Yes                |
| `/fire-opal-mcp:iterate <sweep\|vqe\|stop> …`                           | Runs parameter sweeps, batches of more than 300 circuits, and variational loops such as VQE in one session      | Yes                |
| `/fire-opal-mcp:qaoa <problem> [backend]`                               | Solves Max-Cut, Max-k-Cut, polynomial and Ising problems with the Fire Opal QAOA solver                         | Yes                |
| `/fire-opal-mcp:dynamics <initial state> …`                             | Simulates the time evolution of a 1D Fermi-Hubbard chain, and tracks site occupations or your own observables   | Yes                |
| `/fire-opal-mcp:monte-carlo <problem>`                                  | Runs quantum Monte Carlo integration: an option price or delta, fixed income, credit risk, or your own circuit  | Yes                |
| `/fire-opal-mcp:result <job_id>`                                        | Gets and summarizes a job's result, and saves the full result when you ask                                      | No                 |
| `/fire-opal-mcp:jobs [limit] [status]`                                  | Lists your recent jobs                                                                                          | No                 |

If you leave out the backend, Claude lists your devices and asks. If you leave out the shot count, Claude suggests 2048.

## Circuits

`<circuits>` can be:

- A `.qasm` file.
- A folder of `.qasm` files.
- A Python file that defines Qiskit `QuantumCircuit` objects at module level. Claude exports them to OpenQASM with your own Python, so Qiskit must be installed there.

## Providers

| Provider      | Commands                                                       |
| ------------- | -------------------------------------------------------------- |
| IBM Cloud     | All                                                            |
| Amazon Braket | `devices`, `validate` and `run`, with no circuit parameters    |
| IonQ          | `qaoa`                                                         |

## IBM run options

On IBM backends, every command that runs jobs, except `dynamics`, also takes these run options:

- **Job tags**, shown in the IBM Quantum dashboard.
- **A session ID**, to run in an IBM Runtime session you already opened.
- **Reduced approximation**, to keep near-identity gates, for circuits where small rotations matter.

Ask for them in plain words, for example "tag these jobs `calibration-oct`".

## Variational loops

`/fire-opal-mcp:iterate` keeps one hardware session open across steps, and always closes it when the loop ends, fails or you stop it.

Claude is the optimizer. It runs one step at a time, reads the results, and picks the next parameters. To keep the number of steps small, it tests many parameter values in each step. It agrees a step limit with you first, at most 500 steps.

To run your own optimizer in Python, use the [Fire Opal Python package](https://docs.q-ctrl.com/references/fire-opal.md) instead.

## Approvals

- Commands that run jobs (`run`, `expectation`, `iterate`, `qaoa`, `dynamics` and `monte-carlo`) start only when you type them.
- Claude Code asks you to approve each job before it is sent to hardware.
- Checks, status and results run without asking.

## Saved files

Claude saves files in `fire-opal-results/` in your project, but only when you ask. These can be exported circuits, sweep results, and full job results (`<job_id>.json`).

## Write your own Fire Opal code

The plugin also has a reference for the whole `fireopal` Python package: every function, type and run option. Claude uses it when you ask it to write or fix your own Fire Opal code. That code runs in your own Python environment.

## Q-CTRL MCP tools

Each command calls [Q-CTRL MCP tools](https://docs.q-ctrl.com/agent-resources/mcp/q-ctrl-mcp-tools.md).

| Command                      | Q-CTRL MCP tools                                                                                                 |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `/fire-opal-mcp:setup`       | `qctrl_whoami`, `qctrl_add_credential`, `qctrl_list_credentials`, `qctrl_remove_credentials`                     |
| `/fire-opal-mcp:devices`     | `qctrl_fire_opal_show_supported_devices`                                                                         |
| `/fire-opal-mcp:validate`    | `qctrl_fire_opal_validate`                                                                                       |
| `/fire-opal-mcp:run`         | `qctrl_fire_opal_execute`                                                                                        |
| `/fire-opal-mcp:expectation` | `qctrl_fire_opal_estimate_expectation`                                                                           |
| `/fire-opal-mcp:iterate`     | `qctrl_fire_opal_iterate`, `qctrl_fire_opal_iterate_expectation`, `qctrl_fire_opal_stop_iterate`                 |
| `/fire-opal-mcp:qaoa`        | `qctrl_fire_opal_solve_qaoa`                                                                                     |
| `/fire-opal-mcp:dynamics`    | `qctrl_fire_opal_simulate_dynamics`                                                                              |
| `/fire-opal-mcp:monte-carlo` | `qctrl_fire_opal_integrate_monte_carlo`                                                                          |
| `/fire-opal-mcp:result`      | `qctrl_get_job`, `qctrl_fire_opal_get_*_results`, `qctrl_get_results_link`                                       |
| `/fire-opal-mcp:jobs`        | `qctrl_list_jobs`                                                                                                |
