VirtualQuantumProcessor

Overview

QPanda2 virtual quantum processor. More…

Detailed Documentation

QPanda2 virtual quantum processor.

Global Functions

Get Noise model bit-phase flip matrix.

Use this at the SingleGateNoiseModeMap constructor

Parameters:

rapidjson::Value

Noise model and probability

NoiseOp

Noise model matrix: E1 = sqrt(1-p){1,0,0,1}, E2 = sqrt(p) {0,-i,i,0}

Returns:

bool true:get matrix success, false:get matrix failed

Get Noise model bit-phase flip matrix.

Use this at the SingleGateNoiseModeMap constructor

Parameters:

rapidjson::Value

Noise model and probability

NoiseOp

Noise model matrix: E1 = {1,0,0,sqrt(1-p)} , E2 = {0,0,0,sqrt(p)}

Returns:

bool true:get matrix success, false:get matrix failed

Get Noise model bit-phase flip matrix.

Use this at the DoubleGateNoiseModeMap constructor

Parameters:

rapidjson::Value

Noise model and probability

NoiseOp

Noise model matrix: E1 = sqrt(1-p){1,0,0,1}, E2 = sqrt(p) {0,-i,i,0}

Returns:

bool true:get matrix success, false:get matrix failed

Get Noise model bit-phase flip matrix.

Use this at the DoubleGateNoiseModeMap constructor

Parameters:

rapidjson::Value

Noise model and probability

NoiseOp

Noise model matrix: E1 = {1,0,0,sqrt(1-p)}, E2 = {0,0,0,sqrt(p)}

Returns:

bool true:get matrix success, false:get matrix failed