Sequential Quantum Gate Decomposer
v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
A class containing basic methods for setting up the verbosity level. More...
#include <logging.h>
Public Member Functions | |
logging () | |
Nullary constructor of the class. More... | |
void | print (const std::stringstream &sstream, int verbose_level=1) const |
Call to print output messages in the function of the verbosity level. More... | |
void | set_debugfile (std::string debugfile) |
Call to set the debugfile name. More... | |
void | set_verbose (int verbose_in) |
Call to set the verbose attribute. More... | |
Public Attributes | |
bool | debug |
Logical variable. Set true to write output messages to the 'debug.txt' file. More... | |
std::string | debugfile_name |
String variable. Set the debug file name. More... | |
int | verbose |
Set the verbosity level of the output messages. More... | |
A class containing basic methods for setting up the verbosity level.
logging::logging | ( | ) |
Nullary constructor of the class.
Definition at line 34 of file logging.cpp.
void logging::print | ( | const std::stringstream & | sstream, |
int | verbose_level = 1 |
||
) | const |
Call to print output messages in the function of the verbosity level.
sstream | The stringstream input to store the output messages. |
verbose_level | Integer input. High level means write more to the standart output, 0 means write nothing. The default value is set to 1. |
Definition at line 55 of file logging.cpp.
void logging::set_debugfile | ( | std::string | debugfile | ) |
Call to set the debugfile name.
debugfile | String variable. Set the debugfile name. |
Definition at line 95 of file logging.cpp.
void logging::set_verbose | ( | int | verbose_in | ) |
Call to set the verbose attribute.
verbose_in | Integer variable. Set the number to specify the verbosity level for output messages. |
Definition at line 85 of file logging.cpp.
bool logging::debug |
std::string logging::debugfile_name |
int logging::verbose |