|
Sequential Quantum Gate Decomposer
v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Depolarizing channel: Ï â (1-p)Ï + p·I/2^n. More...
#include <noise_channel.h>

Public Member Functions | |
| void | apply (DensityMatrix &rho) override |
| Apply noise channel to density matrix. More... | |
| DepolarizingChannel (int qbit_num, double error_rate) | |
| Constructor. More... | |
| double | get_error_rate () const |
| std::string | get_name () const override |
| Get channel name. More... | |
| int | get_qbit_num () const |
Private Attributes | |
| double | error_rate_ |
| int | qbit_num_ |
Depolarizing channel: Ï â (1-p)Ï + p·I/2^n.
Represents uniform noise that replaces quantum state with maximally mixed state. Equivalent to applying X, Y, Z with equal probability p/3 each.
Kraus operators:
Example:
Definition at line 66 of file noise_channel.h.
| squander::density::DepolarizingChannel::DepolarizingChannel | ( | int | qbit_num, |
| double | error_rate | ||
| ) |
Constructor.
| qbit_num | Number of qubits (applies to full system) |
| error_rate | Error rate p â [0, 1] |
| std::invalid_argument | if error_rate not in [0,1] |
Definition at line 27 of file noise_channel.cpp.
|
overridevirtual |
Apply noise channel to density matrix.
| rho | Density matrix (modified in-place) |
Implements squander::density::NoiseChannel.
Definition at line 35 of file noise_channel.cpp.


|
inline |
|
inlineoverridevirtual |
Get channel name.
Implements squander::density::NoiseChannel.
Definition at line 77 of file noise_channel.h.
|
inline |
|
private |
Definition at line 84 of file noise_channel.h.
|
private |
Definition at line 83 of file noise_channel.h.
1.8.13