# Quantum Analyzer Module

The Quantum Analyzer (QA) module corresponds to the Quantum Analyzer Result Logger tab of LabOne user interface (UI). This nodule allows the user to record multiple measurement shots in its history tab and to apply matrix transformations on the measured complex signals, i.e. $$I$$ and $$Q$$ components obtained by weighted integration. It applies transform operations on the measured signals with the following order.

1. Shift or translation

2. Rotation

3. Scaling or dilation

The transform parameters are set by the module nodes and displayed in the control sub-tab of the QA tab in LabOne UI. The equivalent transformed outcome is obtained by matrix multiplication of the corresponding operators as shown in Equation 1.

$$$\tag{1} \begin{pmatrix} X \\ Y \\ \end{pmatrix} = \begin{bmatrix} S_I & 0 \\ 0 & S_Q \\ \end{bmatrix} \begin{bmatrix} \cos\theta & -\sin\theta \\ \sin\theta & \cos\theta \\ \end{bmatrix} \begin{pmatrix} I-I_0 \\ Q-Q_0 \\ \end{pmatrix}$$$

where $$I_0$$ and $$Q_0$$ are shift parameters, $$\theta$$ is rotation angle in degree, and $$S_I$$ and $$S_Q$$ are scaling factors. All the measurement shots are recorded in the History sub-tab of the QA tab and can be saved in CSV, HDF5, and MATLAB formats.

## Quantum Analyzer Module Node Tree

The following section contains reference documentation for the settings and measurement data available on the quantum analyzer module.

Since these settings and data streams may be written and read using the LabOne APIs (Application Programming Interfaces) this section is of particular interest to users who would like to perform measurements programmatically via LabVIEW, Python, MATLAB, .NET or C.

### clearhistory

/clearhistory

 Properties: Read, Write Type: Integer (64 bit) Unit: None

Remove all records from the history list.

### historylength

/historylength

 Properties: Read, Write Type: Integer (64 bit) Unit: None

Maximum number of entries stored in the measurement history.

### rotation

/rotation

 Properties: Read, Write Type: Double Unit: None

Rotation angle applied to the recorded complex values.

### save

/save/csvlocale

 Properties: Read, Write Type: String Unit: None

The locale to use for the decimal point character and digit grouping character for numerical values in CSV files: "C": Dot for the decimal point and no digit grouping (default); "" (empty string): Use the symbols set in the language and region settings of the computer.

/save/csvseparator

 Properties: Read, Write Type: String Unit: None

The character to use as CSV separator when saving files in this format.

/save/directory

 Properties: Read, Write Type: String Unit: None

The base directory where files are saved.

/save/fileformat

 Properties: Read, Write Type: Integer (enumerated) Unit: None

The format of the file for saving data.

 0 mat MATLAB 1 csv CSV 2 zview ZView (Impedance data only) 3 sxm SXM (Image format) 4 hdf5 HDF5

/save/filename

 Properties: Read, Write Type: String Unit: None

Defines the sub-directory where files are saved. The actual sub-directory has this name with a sequence count (per save) appended, e.g. daq_000.

/save/save

 Properties: Read, Write Type: Integer (64 bit) Unit: None

Initiate the saving of data to file. The saving is done in the background. When the save has finished, the module resets this parameter to 0.

 Properties: Read, Write Type: Integer (64 bit) Unit: None

Automatically save the data to file immediately before reading out the data from the module using the read() command. Set this parameter to 1 if you want to save data to file when running the module continuously and performing intermediate reads.

### scalingi

/scalingi

 Properties: Read, Write Type: Double Unit: None

Scaling factor applied to the I component of the recorded data points.

### scalingq

/scalingq

 Properties: Read, Write Type: Double Unit: None

Scaling factor applied to the Q component of the recorded data points.

### shifti

/shifti

 Properties: Read, Write Type: Double Unit: None

Translation shift applied to the I component of the recorded data points.

### shiftq

/shiftq

 Properties: Read, Write Type: Double Unit: None

Translation shift applied to the Q component of the recorded data points.