QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
Chi

Prev Tutorial: SuperOp
Next Tutorial: PTM


Introduction

Pauli basis Chi-matrix representation of a quantum channel.

The Chi-matrix representation of an n-qubit quantum channel \(\mathcal{E}\) is a matrix χ such that the evolution of a DensityMatrix \(\rho\) is given by

\[ \mathcal{E}(\rho)=\frac{1}{2^{n}} \sum_{i, j} \chi_{i, j} P_{i} \rho P_{j} \]

where

\[ \left[P_{0}, P_{1}, \ldots, P_{4^{n}-1}\right] \]

is the n-qubit Pauli basis in lexicographic order. It is related to the Choi representation by a change of basis of the Choi-matrix into the Pauli basis. The

\[ \frac{1}{2^{n}} \]

in the definition above is a normalization factor that arises from scaling the Pauli basis to make it orthonormal.

Please refer: C.J. Wood, J.D. Biamonte, D.G. Cory, Tensor networks and graphical calculus for open quantum systems, Quant. Inf. Comp. 15, 0579-0811 (2015). arXiv:1111.6950 [quant-ph]

In QPanda3 Quantum Information

Constructing a Chi object

Here is API doc

From Choi

Generate another Chi object from a Choi object

Please refer to Choi

Output

chi: {
{
{(0,0)},{(0,0)},{(0,0)},{(0,0)},
}
{
{(0,0)},{(2,0)},{(0,0)},{(0,0)},
}
{
{(0,0)},{(0,0)},{(2,0)},{(0,0)},
}
{
{(0,0)},{(0,0)},{(0,0)},{(2,0)},
}
}

From Chi

Generate another Chi object from a Chi object

Output

chi2: {
{
{(0,0)},{(0,0)},{(0,0)},{(0,0)},
}
{
{(0,0)},{(2,0)},{(0,0)},{(0,0)},
}
{
{(0,0)},{(0,0)},{(2,0)},{(0,0)},
}
{
{(0,0)},{(0,0)},{(0,0)},{(2,0)},
}
}

From SuperOp

Generate another Chi object from a SuperOp object

Please refer to SuperOp

Output

chi: {
{
{(0,0)},{(0,0)},{(0,0)},{(0,0)},
}
{
{(0,0)},{(2,0)},{(0,0)},{(0,0)},
}
{
{(0,0)},{(0,0)},{(2,0)},{(0,0)},
}
{
{(0,0)},{(0,0)},{(0,0)},{(2,0)},
}
}

From Kraus

Generate another Chi object from a Kraus object

Please refer to Kraus

Output

chi: {
{
{(0,0)},{(0,0)},{(0,0)},{(0,0)},
}
{
{(0,0)},{(2,0)},{(0,0)},{(0,0)},
}
{
{(0,0)},{(0,0)},{(2,0)},{(0,0)},
}
{
{(0,0)},{(0,0)},{(0,0)},{(2,0)},
}
}

From PTM

Generate another SuperOp object from a PTM object

Please refer to PTM

Output

chi: {
{
{(0,0)},{(0,0)},{(0,0)},{(0,0)},
}
{
{(0,0)},{(2,0)},{(0,0)},{(0,0)},
}
{
{(0,0)},{(0,0)},{(2,0)},{(0,0)},
}
{
{(0,0)},{(0,0)},{(0,0)},{(2,0)},
}
}

Obtain internal data

Input and outut dim

Obtain the input dimension input_dim and output dimension output_dim of the quantum channel

Here is API doc for Chi.get_input_dim

Here is API doc for Chi.get_output_dim

Output

input_dim: 2
output_dim: 2

Evolution of quantum states

Here is API doc for Chi.evolve

DensityMatrix

Evolution of a DensityMatrix object, and the evolution result is returned as a DensityMatrix object. The dimension of the density matrix is obtained by the member method dim() and should be equal to the input dimension of the Chi object

Please refer to DensityMatrix.

Output

res: {
{
{(1.30728,0)},{(-0.383385,0.177724)},
}
{
{(-0.383385,-0.177724)},{(1.69272,0)},
}
}

StateVector

Evolution of the StateVector object is performed, and the result is returned as a DensityMatrix object. The dimension of the StateVector object is obtained by the member method dim() and should be equal to the input dimension of the Chi object

Please refer to DensityMatrix

Please refer to StateVector

output

res: {
{
{(1,0)},{(0,0)},
}
{
{(0,0)},{(2,0)},
}
}

Boolean function

Equal

Determine whether the internal data of two Chi objects are equal

Here is API doc

Output

True