Quantum++
v1.2
A modern C++11 quantum computing library
|
Internal utility functions. More...
Go to the source code of this file.
Classes | |
struct | qpp::internal::Display_Impl_ |
Namespaces | |
qpp | |
Quantum++ main namespace. | |
qpp::internal | |
Internal utility functions, do not use them directly or modify them. | |
Functions | |
void | qpp::internal::n2multiidx (idx n, idx numdims, const idx *const dims, idx *result) noexcept |
idx | qpp::internal::multiidx2n (const idx *const midx, idx numdims, const idx *const 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 |
template<typename T1 , typename T2 > | |
bool | qpp::internal::check_matching_sizes (const T1 &lhs, const T2 &rhs) 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 > &A) |
template<typename Derived > | |
bool | qpp::internal::check_dims_match_rvect (const std::vector< idx > &dims, const Eigen::MatrixBase< Derived > &A) |
bool | qpp::internal::check_eq_dims (const std::vector< idx > &dims, idx dim) noexcept |
bool | qpp::internal::check_no_duplicates (std::vector< idx > v) |
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 > &A) noexcept |
template<typename Derived > | |
bool | qpp::internal::check_qubit_rvector (const Eigen::MatrixBase< Derived > &A) noexcept |
template<typename Derived > | |
bool | qpp::internal::check_qubit_vector (const Eigen::MatrixBase< Derived > &A) 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) |
idx | qpp::internal::get_num_subsys (idx D, idx d) |
idx | qpp::internal::get_dim_subsys (idx sz, idx N) |
Internal utility functions.