Package: qualang-tools
QUA Language ToolsThe QUA language tools package includes various tools useful while writing QUA programs and performing experiments.It includes:QUA Loops Tools- This library includes tools for parametrizing QUA for_ loops using the numpy (linspace, arange, logspace) methods or by directly inputting a numpy array.Plotting Tools- This library includes tools to help handling plots from QUA programs.Result Tools- This library includes tools for handling and fetching results from QUA programs.Units Tools- This library includes tools for using units (MHz, us, mV...) and converting data to other units (demodulated data to volts for instance).Analysis Tools- This library includes tools for analyzing data from experiments.
It currently has a two-states discriminator for analyzing the ground and excited IQ blobs.Multi-user tools- This library includes tools for working with the QOP in a multi-user or multi-process setting.Bakery- This library introduces a new framework for creating arbitrary waveforms and
storing them in the usual configuration file. It allows defining waveforms in a QUA-like manner while working with 1ns resolution (or higher).External Frameworks- This library introduces drivers for integrating the OPX within external frameworks such as QCoDeS. Please refer to theexamplessection for more details about how to use these drivers.Addons:Calibrations- This module allows to easily perform most of the standard single qubit calibrations from a single python file.Interactive Plot Library- This package drastically extends the capabilities of matplotlib,
enables easily editing various parts of the figure, copy-pasting data between figures and into spreadsheets,
fitting the data and saving the figures.assign_variables_to_element- Forces the given variables to be used by the given element thread. Useful as a workaround for when the compiler
wrongly assigns variables which can cause gaps.Config Tools- This package includes tools related to the QOP configuration file, including:Integration Weights Tools- This package includes tools for the creation and manipulation of integration weights.Waveform Tools- This package includes tools for creating waveforms useful for experiments with the QOP.Config Helper Tools- This package includes tools for writing and updating the configuration.Config GUI- This package contains a GUI for creating and visualizing the configuration file - No longer being actively developed.Config Builder- This package contains an API for creating and manipulation configuration files - No longer being actively developed.Control Panel- This package includes tools for directly controlling the OPX.ManualOutputControl- This module allows controlling the outputs from the OPX in CW mode. Once created, it has an API for defining which channels are on. Analog channels also have an API for defining their amplitude and frequency.VNA- This module allows to configure the OPX as a VNA for a given element (readout resonator for instance) and operation (readout pulse for instance) already defined in the configuration. Once created, it has an API for defining which measurements are to be run depending on the down-conversion solution used (ED: envelope detector, IR: image rejection mixer, IQ: IQ mixer).InstallationInstall the current version usingpip, the--upgradeflag ensures that you will get the latest version.pipinstall--upgradequalang-toolsNote that in order use theConfig GUIorConfig Builder, you need to install usingpipinstall--upgradequalang-tools[configbuilder]Note that in order use theInteractive Plot Library, you need to install usingpipinstall--upgradequalang-tools[interplot]Support and ContributionHave an idea for another tool? A way to improve an existing one? Found a bug in our code?We'll be happy if you could let us know by opening anissueon theGitHub repository.Feel like contributing code to this library? We're thrilled! Please followthis guideand feel free to contact us if you need any help, you can do it by opening anissue:)UsageExamples for using various tools can be found on theQUA Libraries Repository.Examples for using the Baking toolbox, including 1-qubit randomized benchmarking, cross-entropy benchmark (XEB), high sampling rate baking and more can be foundhere.