Skip to content

Model Editor

The Model Editor is an IDE component that allows writing models in Classiq's modeling language.

This Editor is under active development, new language features and editor features will be added every release - stay tuned!

It can be accessed here: Model page

The following code snippet shows how a Bell state is created using the modeling language

qfunc H(inout target: qbit);
qfunc CX(inout control: qbit, inout target: qbit);
qfunc allocate<num_qubits: int>(output out : qbit[num_qubits]);

qfunc main(output a: qbit, output b: qbit) {
    allocate<1>(a);
    allocate<1>(b);
    H(a);
    CX(a, b);
}

you can then synthesize the circuit or download and look at the resulting JSON model by clicking the buttons:

buttons

these pages contain more information that you can use to learn your way around the language and the editor: