Skip to main content
Glama
barvhaim

Qiskit MCP Server

by barvhaim

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
create_quantum_circuitA

Create a new quantum circuit with auto-generated unique name.

Args: num_qubits: Number of quantum bits (must be an integer) num_classical_bits: Number of classical bits (must be an integer, defaults to num_qubits if not provided) name: Optional custom name for the circuit (auto-generated if not provided)

Returns: Success message with circuit details and generated name

add_gatesA

Add quantum gates to a circuit.

Args: circuit_name: Name of the circuit to modify gates: List of gate operations, each with 'type' and 'qubits' keys Supported gates: 'h', 'x', 'y', 'z', 'cx', 'measure', 'measure_all'

Returns: Success message with applied gates

run_circuitB

Run a quantum circuit on the simulator.

Args: circuit_name: Name of the circuit to run shots: Number of measurement shots

Returns: JSON string with measurement results

get_circuit_infoA

Get information about a quantum circuit.

Args: circuit_name: Name of the circuit

Returns: JSON string with circuit information

visualize_circuitB

Get a text visualization of the quantum circuit.

Args: circuit_name: Name of the circuit to visualize

Returns: Text representation of the circuit

visualize_circuit_mermaidA

Generate a Mermaid flowchart diagram of the quantum circuit.

Args: circuit_name: Name of the circuit to visualize

Returns: Mermaid flowchart syntax representing the quantum circuit

list_circuitsA

List all created circuits.

Returns: JSON string with circuit names and basic info

analyze_statevectorA

Analyze the quantum state vector of a circuit.

Args: circuit_name: Name of the circuit to analyze

Returns: JSON string with state vector analysis including probabilities and amplitudes

compute_density_matrixA

Compute and analyze the density matrix of a quantum circuit.

Args: circuit_name: Name of the circuit to analyze

Returns: JSON string with density matrix analysis including purity and entropy

optimize_circuitB

Optimize a quantum circuit using Qiskit transpiler passes.

Args: circuit_name: Name of the circuit to optimize optimization_level: Optimization level (0-3, where 0 is no optimization)

Returns: Success message with optimization results and new circuit name

add_advanced_gatesA

Add advanced quantum gates to a circuit beyond basic H, X, Y, Z, CX.

Args: circuit_name: Name of the circuit to modify gates: List of advanced gate operations Supported gates: 'rx', 'ry', 'rz', 'rxx', 'ryy', 'rzz', 'u', 'swap', 's', 'sdg', 't', 'tdg'

Returns: Success message with applied gates

create_variational_circuitA

Create a variational quantum circuit (ansatz) for quantum machine learning.

Args: num_qubits: Number of qubits num_layers: Number of repetitions of the ansatz entanglement: Entanglement strategy ('full', 'linear', 'circular') name: Optional custom name for the circuit

Returns: Success message with circuit details

implement_qftB

Implement Quantum Fourier Transform circuit.

Args: num_qubits: Number of qubits for QFT inverse: Whether to implement inverse QFT name: Optional custom name for the circuit

Returns: Success message with QFT circuit details

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/barvhaim/qiskit-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server