Working with the editor

By going to 'My QI', you enter the editor for a specific project by clicking on the project title. When a new project is created, you enter the editor automatically as well.

A typical cQASM program could look like this:

You can type your cQASM program directly in the editor. The editor checks your code for obvious problems such as syntax errors, multiple operations on the same qubit at the same time, out-of-range errors, etc. Syntax highlighting is used to easily discriminate between instructions, operands, comments etc.

Note that syntax errors are signaled in the editor by a clear warning, but this does not prevent the code from being saved.

Although the editor may catch the most obvious syntax errors, your code could still contain other problems which result in execution errors.

Our new editor environment has lots of new features.You can drag windows around. Check out the source code, compiled code, job status and job results. Try it out for yourself to find out all features.

Visualization of the algorithm

The circuit diagram corresponding to the cQASM code is shown in a separate section of your window. The circuit is automatically rendered from the code in real time. Both the code display and the circuit visualization use differing colors to distinguish initialization and measurement operations from qubit operations and comments.

If your algorithm contains many lines of code, the rendering of the circuit could take some time. For very long algorithms our Software Development Kit (SDK) may be more appropriate.

Export visualization

File format
Layout
Theme

In the editor you can type your own code or copy and paste existing algorithms. From the operations list on the right you can copy cQASM instructions to your clipboard and paste them anywhere in your code.