q_lint_qasm
Free tier: OpenQASM 2.0/3.0 lexer, AST parser, and 15 static preflight checks (bounds, arity, q0_lsb endianness). Example: {"qasm":"OPENQASM 2.0;\nqreg q[2];\nh q[0];\ncx q[0],q[1];\n"}.
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": {
"qasm": "<qasm>"
},
"name": "q_lint_qasm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qasm | Yes | OpenQASM 2.0 or 3.0 source string (<= 262,144 bytes). | |
| strict | No | When true, warnings mark valid=false (default false). |