OpenQASM debugger extensionThis extension allows debugging of quantum program written in OpenQASM or one of python frameworks - Qiskit or TKET. OpenQASM debugger connects to remote Quantum Virtual Machine (QVM) using Debug Adapter Protocol. It supports step, continue, breakpoints, exceptions, and variable access. Program in OpenQASM executed step by step on remote QVM and its state shown in VS Code in 'Variables' window. Program in python which uses Qiskit or TKET frameworks loaded to QVM and converted to OpenQASM code. This OpenQASM code can be views in 'Disassembly' window. Using commands it is possible to render Qiskit and TKET circuits directly in VS Code (Qiskit) or in external browser (TKET). These commands can be used only after starting debugging session. More information about quantum debugger adapter can be found here. Samples can be downloaded from here. Detailed documentation of extension can be downloaded as PDF from here Using OpenQASM debugger
You can now 'step through' the file, set and hit breakpoints, and run into exceptions (if the word exception appears in a line). Using command 'Render Qiskit Circuit' in Commands Palette you can render circuit directly within VS Code. Build and Run
|