Kernel Quantum Probability Library
The KQP library aims at providing tools for working with quantums probabilities
Public Member Functions
kqp::KMult< Scalar > Class Template Reference

#include <qp_approach.inc.hpp>

Inheritance diagram for kqp::KMult< Scalar >:
kqp::cvxopt::QPMatrix< KQP_REAL_OF(Scalar)>

Public Member Functions

typedef KQP_REAL_OF (Scalar) Real
 
 KMult (Index n, Index r, const KQP_MATRIX(Scalar)&g)
 
virtual void mult (const KQP_VECTOR(Real)&x, KQP_VECTOR(Real)&y, bool=false) const
 
virtual Index rows () const
 
virtual Index cols () const
 
- Public Member Functions inherited from kqp::cvxopt::QPMatrix< KQP_REAL_OF(Scalar)>
virtual void mult (const KQP_VECTOR(KQP_REAL_OF(Scalar))&x, KQP_VECTOR(KQP_REAL_OF(Scalar))&y, bool adjoint=false) const =0
 Computes Q * x and stores the result in y (y might be the same as x)
 

Detailed Description

template<typename Scalar>
class kqp::KMult< Scalar >

Class that knows how to multiply by

\( \left(\begin{array}{ccc} K'\\ & \ddots\\ & & K' \end{array}\right) \)

where \(K'\) is \(K\) (real case) or \( \left(\begin{array}{cc} Re(K) & -Im(K) \\ -Im(K) & Re(K) \end{array}\right) \)

Warning
Assumes \(K\) is Hermitian

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