Quantum++
v1.2
A modern C++11 quantum computing library
|
Qubit phase damping noise, as described in Nielsen and Chuang. More...
#include <classes/noise.h>
Public Member Functions | |
QubitPhaseDampingNoise (double lambda) | |
Qubit phase damping noise constructor. More... | |
![]() | |
NoiseBase (const std::vector< cmat > &Ks, typename std::enable_if< std::is_same< NoiseType::StateDependent, U >::value >::type *=nullptr) | |
Constructs a noise instance for StateDependent noise type. More... | |
NoiseBase (const std::vector< cmat > &Ks, const std::vector< double > &probs, typename std::enable_if< std::is_same< NoiseType::StateIndependent, U >::value >::type *=nullptr) | |
Constructs a noise instance for StateIndependent noise type. More... | |
virtual | ~NoiseBase ()=default |
Default virtual destructor. More... | |
idx | get_d () const noexcept |
Qudit dimension. More... | |
std::vector< cmat > | get_Ks () const |
Vector of noise operators. More... | |
std::vector< double > | get_probs () const |
Vector of probabilities corresponding to each noise operator. More... | |
idx | get_last_idx () const |
Index of the last occurring noise element. More... | |
double | get_last_p () const |
Probability of the last occurring noise element. More... | |
cmat | get_last_K () const |
Last occurring noise element. More... | |
virtual cmat | operator() (const cmat &state) const |
Function invocation operator, applies the underlying noise model on the state vector or density matrix state. More... | |
virtual cmat | operator() (const cmat &state, idx target) const |
Function invocation operator, applies the underlying noise model on qudit target of the multi-partite state vector or density matrix state. More... | |
virtual cmat | operator() (const cmat &state, const std::vector< idx > &target) const |
Function invocation operator, applies the underlying correlated noise model on qudits specified by target of the multi-partite state vector or density matrix state. More... | |
Additional Inherited Members | |
![]() | |
using | noise_type = NoiseType::StateDependent |
![]() | |
void | compute_probs_ (const cmat &state, const std::vector< idx > &target) const |
Compute probability outcomes for StateDependent noise type, otherwise returns without performing any operation (no-op) More... | |
cmat | compute_state_ (const cmat &state, const std::vector< idx > &target) const |
Compute the resulting state after the noise was applied. More... | |
![]() | |
const std::vector< cmat > | Ks_ |
Kraus operators. More... | |
std::vector< double > | probs_ |
probabilities More... | |
idx | d_ |
qudit dimension More... | |
idx | i_ |
index of the last occurring noise element More... | |
bool | generated_ |
invoked, or if the noise is state-independent More... | |
Qubit phase damping noise, as described in Nielsen and Chuang.
|
inlineexplicit |
Qubit phase damping noise constructor.
gamma | Phase damping probability |