Quantum++  v0.8
C++11 quantum computing library
util.h File Reference

Internal utility 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.
 
 qpp::internal
 Internal utility functions, do not use/modify.
 

Functions

void qpp::internal::_n2multiidx (idx n, idx numdims, const idx *dims, idx *result) noexcept
 
idx qpp::internal::_multiidx2n (const idx *midx, idx numdims, const idx *dims) noexcept
 
template<typename Derived >
bool qpp::internal::_check_square_mat (const Eigen::MatrixBase< Derived > &A)
 
template<typename Derived >
bool qpp::internal::_check_vector (const Eigen::MatrixBase< Derived > &A)
 
template<typename Derived >
bool qpp::internal::_check_rvector (const Eigen::MatrixBase< Derived > &A)
 
template<typename Derived >
bool qpp::internal::_check_cvector (const Eigen::MatrixBase< Derived > &A)
 
template<typename T >
bool qpp::internal::_check_nonzero_size (const T &x) noexcept
 
bool qpp::internal::_check_dims (const std::vector< idx > &dims)
 
template<typename Derived >
bool qpp::internal::_check_dims_match_mat (const std::vector< idx > &dims, const Eigen::MatrixBase< Derived > &A)
 
template<typename Derived >
bool qpp::internal::_check_dims_match_cvect (const std::vector< idx > &dims, const Eigen::MatrixBase< Derived > &V)
 
template<typename Derived >
bool qpp::internal::_check_dims_match_rvect (const std::vector< idx > &dims, const Eigen::MatrixBase< Derived > &V)
 
bool qpp::internal::_check_eq_dims (const std::vector< idx > &dims, idx dim) noexcept
 
bool qpp::internal::_check_subsys_match_dims (const std::vector< idx > &subsys, const std::vector< idx > &dims)
 
template<typename Derived >
bool qpp::internal::_check_qubit_matrix (const Eigen::MatrixBase< Derived > &A) noexcept
 
template<typename Derived >
bool qpp::internal::_check_qubit_cvector (const Eigen::MatrixBase< Derived > &V) noexcept
 
template<typename Derived >
bool qpp::internal::_check_qubit_rvector (const Eigen::MatrixBase< Derived > &V) noexcept
 
template<typename Derived >
bool qpp::internal::_check_qubit_vector (const Eigen::MatrixBase< Derived > &V) noexcept
 
bool qpp::internal::_check_perm (const std::vector< idx > &perm)
 
template<typename Derived1 , typename Derived2 >
dyn_mat< typename Derived1::Scalar > qpp::internal::_kron2 (const Eigen::MatrixBase< Derived1 > &A, const Eigen::MatrixBase< Derived2 > &B)
 
template<typename Derived1 , typename Derived2 >
dyn_mat< typename Derived1::Scalar > qpp::internal::_dirsum2 (const Eigen::MatrixBase< Derived1 > &A, const Eigen::MatrixBase< Derived2 > &B)
 
template<typename T >
void qpp::internal::variadic_vector_emplace (std::vector< T > &)
 
template<typename T , typename First , typename... Args>
void qpp::internal::variadic_vector_emplace (std::vector< T > &v, First &&first, Args &&...args)
 

Detailed Description

Internal utility functions.