add_gates
Add quantum gates to a circuit by specifying the circuit name and a list of gate operations, each with type and target qubits.
Instructions
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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"circuit_name": "<circuit_name>",
"gates": "<gates>"
},
"name": "add_gates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| circuit_name | Yes | ||
| gates | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |