Repair a quantum program on its flagged lines
repair_qasmRepair a program the reader refuses, changing only the lines its diagnostics flag. The engine makes the fixes that are mechanical (a missing ;, an undeclared register's size, a measurement with no target, an unbounded while given the bound chosen, an angle the bit-exact method refuses rounded to the bits chosen with its rounding stated), and holds a fix you propose (proposed) to the flagged lines: any change to another line is rejected (J021) and nothing is changed. Returns the repaired program, each repair with its code and every line it changed, what needs a person with the reader's advice, and the verdict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qasm | Yes | ||
| rules | No | false: only check the proposal. | |
| sizes | No | A register's size, for one used before it is declared (Q102). | |
| proposed | No | Your repaired version: taken only if every changed line is a flagged one (or a line added beside one). | |
| diagnostics | No | Codes you saw that reading the text does not raise (Q500). | |
| dyadic_bits | No | Round each angle the bit-exact method refuses (Q500) to the nearest multiple of 2π/2^K. | |
| max_iterations | No | The bound for an unbounded `while` on measured bits (Q310), as the person chose it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||