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

Subsystems mismatch dimensions exception. More...

#include <classes/exception.h>

Inheritance diagram for qpp::exception::SubsysMismatchDims:
Collaboration diagram for qpp::exception::SubsysMismatchDims:

Public Member Functions

std::string type_description () const override
 Exception type description. More...
 
 Exception (const std::string &where)
 Constructs an exception. More...
 
- Public Member Functions inherited from qpp::exception::Exception
 Exception (const std::string &where)
 Constructs an exception. More...
 
virtual const char * what () const noexcept override
 Overrides std::exception::what() More...
 

Detailed Description

Subsystems mismatch dimensions exception.

std::vector<idx> of subsystem labels has duplicates, or has entries that are larger than the size of the std::vector<idx> of dimensions

Member Function Documentation

◆ Exception()

qpp::exception::Exception::Exception
inlineexplicit

Constructs an exception.

Parameters
whereText representing where the exception occurred

◆ type_description()

std::string qpp::exception::SubsysMismatchDims::type_description ( ) const
inlineoverridevirtual

Exception type description.

Returns
Exception type description

Implements qpp::exception::Exception.


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