Quantum++  v1.1
A modern C++11 quantum computing library
instruments.h File Reference

Measurement functions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 qpp
 Quantum++ main namespace.
 

Functions

template<typename Derived >
dyn_col_vect< typename Derived::Scalar > qpp::ip (const Eigen::MatrixBase< Derived > &phi, const Eigen::MatrixBase< Derived > &psi, const std::vector< idx > &subsys, const std::vector< idx > &dims)
 Generalized inner product. More...
 
template<typename Derived >
dyn_col_vect< typename Derived::Scalar > qpp::ip (const Eigen::MatrixBase< Derived > &phi, const Eigen::MatrixBase< Derived > &psi, const std::vector< idx > &subsys, idx d=2)
 Generalized inner product. More...
 
template<typename Derived >
std::tuple< idx, std::vector< double >, std::vector< cmat > > qpp::measure (const Eigen::MatrixBase< Derived > &A, const std::vector< cmat > &Ks)
 Measures the state A using the set of Kraus operators Ks. More...
 
template<typename Derived >
std::tuple< idx, std::vector< double >, std::vector< cmat > > qpp::measure (const Eigen::MatrixBase< Derived > &A, const std::initializer_list< cmat > &Ks)
 Measures the state A using the set of Kraus operators Ks. More...
 
template<typename Derived >
std::tuple< idx, std::vector< double >, std::vector< cmat > > qpp::measure (const Eigen::MatrixBase< Derived > &A, const cmat &U)
 Measures the state A in the orthonormal basis specified by the unitary matrix U. More...
 
template<typename Derived >
std::tuple< idx, std::vector< double >, std::vector< cmat > > qpp::measure (const Eigen::MatrixBase< Derived > &A, const std::vector< cmat > &Ks, const std::vector< idx > &subsys, const std::vector< idx > &dims)
 Measures the part subsys of the multi-partite state vector or density matrix A using the set of Kraus operators Ks. More...
 
template<typename Derived >
std::tuple< idx, std::vector< double >, std::vector< cmat > > qpp::measure (const Eigen::MatrixBase< Derived > &A, const std::initializer_list< cmat > &Ks, const std::vector< idx > &subsys, const std::vector< idx > &dims)
 Measures the part subsys of the multi-partite state vector or density matrix A using the set of Kraus operators Ks. More...
 
template<typename Derived >
std::tuple< idx, std::vector< double >, std::vector< cmat > > qpp::measure (const Eigen::MatrixBase< Derived > &A, const std::vector< cmat > &Ks, const std::vector< idx > &subsys, idx d=2)
 Measures the part subsys of the multi-partite state vector or density matrix A using the set of Kraus operators Ks. More...
 
template<typename Derived >
std::tuple< idx, std::vector< double >, std::vector< cmat > > qpp::measure (const Eigen::MatrixBase< Derived > &A, const std::initializer_list< cmat > &Ks, const std::vector< idx > &subsys, idx d=2)
 Measures the part subsys of the multi-partite state vector or density matrix A using the set of Kraus operators Ks. More...
 
template<typename Derived >
std::tuple< idx, std::vector< double >, std::vector< cmat > > qpp::measure (const Eigen::MatrixBase< Derived > &A, const cmat &V, const std::vector< idx > &subsys, const std::vector< idx > &dims)
 Measures the part subsys of the multi-partite state vector or density matrix A in the orthonormal basis or rank-1 POVM specified by the matrix V. More...
 
template<typename Derived >
std::tuple< idx, std::vector< double >, std::vector< cmat > > qpp::measure (const Eigen::MatrixBase< Derived > &A, const cmat &V, const std::vector< idx > &subsys, idx d=2)
 Measures the part subsys of the multi-partite state vector or density matrix A in the orthonormal basis or rank-1 POVM specified by the matrix V. More...
 
template<typename Derived >
std::tuple< std::vector< idx >, double, cmat > qpp::measure_seq (const Eigen::MatrixBase< Derived > &A, std::vector< idx > subsys, std::vector< idx > dims)
 Sequentially measures the part subsys of the multi-partite state vector or density matrix A in the computational basis. More...
 
template<typename Derived >
std::tuple< std::vector< idx >, double, cmat > qpp::measure_seq (const Eigen::MatrixBase< Derived > &A, std::vector< idx > subsys, idx d=2)
 Sequentially measures the part subsys of the multi-partite state vector or density matrix A in the computational basis. More...
 

Detailed Description

Measurement functions.