Intel® Quantum SDK Extension for VS Code
The purpose of this extension is to create a visual representation of code for the C++ Intel® Quantum Compiler in the form of a circuit board.
Generate Circuit Board
Navigate to a valid
Export Circuit Board
Click on the tab with the generated circuit board to make it the active window. On the right side of the tab bar there will be an export button. This gives the user the option to export to an svg or png. The file will then appear as
Understanding the json
IntelQuantumID: Tells the extension that this json represents a quantum circuit board
title: Sets the title of the circuit board
gateColorMethod: Chooses one of a few styles that describes how the gates should be colored
numQbits: Defines the size of the y-axis and the number of qbits to display
qbitNames: Defines the name of each qbit. The drawer will dynamically size the circuit to accommodate longer names. Empty strings will be converted to |0⟩.
gates: Defines the gates that will be displayed on the circuit board. Gates require a name and a list of qbits to act upon. There is also an option to add attributes which will be displayed when the user hovers over that specific gate. Notice that some gates such as
Generate Histogram (Beta)
With a valid Intel Quantum Histogram Json file the user can generate a histogram to view the given state of a quantum system in graphical form.
This extension extends the list of keywords that are highlighted by VSCode to include grammar from the Intel® Quantum SDK.
3rd Party Materials
Copyright (c) 2023 Intel Corporation. All rights reserved.
Licensed under the MIT license.