Quantum++  v1.2
A modern C++11 quantum computing library
qpp::QubitDepolarizingNoise Class Reference

Qubit depolarizing noise. More...

#include <classes/noise.h>

Inheritance diagram for qpp::QubitDepolarizingNoise:
Collaboration diagram for qpp::QubitDepolarizingNoise:

Public Member Functions

 QubitDepolarizingNoise (double p)
 Qubit depolarizing noise constructor. More...
 
- Public Member Functions inherited from qpp::NoiseBase< NoiseType::StateIndependent >
 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< cmatget_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

- Public Types inherited from qpp::NoiseBase< NoiseType::StateIndependent >
using noise_type = NoiseType::StateIndependent
 
- Protected Member Functions inherited from qpp::NoiseBase< NoiseType::StateIndependent >
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...
 
- Protected Attributes inherited from qpp::NoiseBase< NoiseType::StateIndependent >
const std::vector< cmatKs_
 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...
 

Detailed Description

Qubit depolarizing noise.

Constructor & Destructor Documentation

◆ QubitDepolarizingNoise()

qpp::QubitDepolarizingNoise::QubitDepolarizingNoise ( double  p)
inlineexplicit

Qubit depolarizing noise constructor.

Parameters
pNoise probability

The documentation for this class was generated from the following file: