Skip to content

Analyzer web application

The Analyzer web application is a tool for visualizing and analyzing quantum circuits. The input to the application is a quantum circuit generated using Classiq's platform synthesis engine. In order to access Classiq Analyzer web application, there are a few different options:

  • Classiq python SDK:
    • run the following code (after synthesizing a circuit using the Classiq platform python SDK)
from classiq import Analyzer, ModelDesigner

model = ModelDesigner()
circuit = model.synthesize()

analyzer = Analyzer(circuit)

OR run:

  • Via the Classiq VSCode extension: open the extension command window (Cmd+Shift+P in macOS) and type Analyze Quantum Circuit From Generated Circuit while a Generated Circuit file is active in your VSCode editor.
  • Direct access via (Drag and Drop / select a file that contains a quantum circuit synthesized using the classiq platform (circuit.save_result("file-name")))

One will need to authenticate before accessing the application. You can find more information on how to authenticate to Classiq VSCode extension and Classiq Python SDK on the Getting Started section of the docs.

Classiq Analyzer Circuit visualization tool provides a hierarchical image of the circuit, as well as a higher level interactive representation showing all functions, gates, qubits and operations involved.

Once the quantum circuit input is loaded and analyzed, an interactive chart will be displayed, such as the following:


In the schema above, the bars represent the functions being used in the quantum algorithm, and the grid models the qubits which are employed in the quantum circuit. Clicking on the "+" button at the top-left corner of the bars will expand the chart to a more detailed view, namely, the gates that make up these functions.

You can change the labels of functions and gates by double-clicking their captions:


Similarly, the analyzer interface enables to rename the qubit lines in your circuit schema. By default, the qubits on which your quantum algorithm operates are named q0, q1, q2 and so forth. Double-click a qubit name to open the rename dialog. In addition, you can play around with the colors of the qubits, for example, in order to highlight particular portions of your quantum algorithm:


The Analyzer web application tool allows you to analyze multiple circuits in the same session. The analysis results of each quantum circuit will be displayed on a separate tab. The title of each tab can be renamed by double-clicking the tab:


Open a new tab to upload a new generated circuit by clicking on the "+" button at the top-right corner of the tab panel.

On the left side drawer, you will find the circuit inspector. With this tool, you can inspect the structure and properties of your generated circuit. The inspector includes four tabs:

  • The Full tab, displays analysis information on the entire circuit. Any selected function/gate will be highlighted in this tab as shown below. You can also click on a function name in the inspector and it will automatically highlight the corresponding gate block in the circuit chart.
  • The Function tab, displays information specific to the function, such as the target qubits on which the function operates and the quantum gates it includes.
  • The Information tab, includes general information on the selected function or gate, such as the registers, depth, width etc.
  • The 🔍 , provides a search interface which enables you to search functions and gates by their names. You can click on any of the search results to locate it within the circuit chart view.


At the top-right corner of the screen, you will find the Analyzer task bar:


The taskbar is divided into four button groups:

  • The first group enables to control the hierarchial view of the quantum circuit chart. The first button from the left, expands all the functions and/or gates to the lowest level analysis of quantum gates which are utilized in your algorithm. The second button from the left, collapses all the bars and reverts the chart to the original view which was displayed when the circuit input was first loaded. This is a single bar which models your entire quantum algorithm.
  • The second group is made up of a single button which enables you to export your analysis insights into a JPEG image or an interactive HTML chart.
  • The third part of the taskbar, is a navigation map button, which enables to navigate through different components of your quantum circuit chart. This feature lets you shift the screen focus on gates and functions which are outside the viewport.
  • The final group of buttons supports scaling of your quantum circuit chart. The second button from the left, scales the quantum circuit chart to the default scale value, which is currently 90%. The third button zooms out of the quantum circuit chart and scales down the view. The fourth button displays the current scale or zoom level of the chart. This button clickable and enables you to input a custom scale value. The last button in the group zooms in and scales up the chart.