List Qpus And Simulators
curl --request POST \
--url 'https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY='import requests
url = "https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY="
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY="
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"vendor": "<string>",
"name": "<string>",
"qubits": 123,
"status": "<string>",
"pending_jobs": 123,
"simulator": true
}
]API Reference
List Qpus And Simulators
List available QPUs and simulators for execution planning.
Use this tool before execution submission to obtain a valid device_id
for run_circuits_on_qpu_or_simulator. The route is read-only and does
not reserve capacity or start jobs, so queue depth and status values are
only snapshots.
When to Use:
- Call this before run submission or backend-aware transpilation when a
valid
device_idis not yet known. - Call this when the user wants to compare available QPUs and simulators by capacity or queue depth.
Constraints:
- Returned backend status and pending-job counts are point-in-time snapshots only.
- Use the returned
idvalues verbatim in later MCP tools.
Notes:
- For agent-facing output, summarize the most relevant backends by simulator flag, qubit count, and pending jobs instead of pasting the full catalog unless the caller asks for exhaustive results.
Args: user: Authenticated user resolved from the API key. db: Active database session.
Returns: A list of execution backend objects with IDs suitable for later run submissions.
POST
/
ai
/
list_qpus_and_simulators
List Qpus And Simulators
curl --request POST \
--url 'https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY='import requests
url = "https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY="
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY="
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY=")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/ai/list_qpus_and_simulators?HAIQU_API_KEY=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"vendor": "<string>",
"name": "<string>",
"qubits": 123,
"status": "<string>",
"pending_jobs": 123,
"simulator": true
}
]