Sequential Quantum Gate Decomposer
v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
A class describing a universal configuration element. More...
#include <config_element.h>
Public Member Functions | |
Config_Element () | |
Nullary constructor of the class. More... | |
void | get_property (double &val_) |
Call to get a double value. More... | |
void | get_property (bool &val_) |
Call to get a bool value. More... | |
void | get_property (long &val_) |
Call to get an integer value. More... | |
void | get_property (long long &val_) |
Call to get a long long value. More... | |
void | get_property (unsigned long long &val_) |
Call to get an unsigned long long value. More... | |
void | set_property (std::string name_, double val_) |
Call to set a double value. More... | |
void | set_property (std::string name_, bool val_) |
Call to set a bool value. More... | |
void | set_property (std::string name_, long val_) |
Call to set an integer value. More... | |
void | set_property (std::string name_, long long val_) |
Call to set a long long value. More... | |
void | set_property (std::string name_, unsigned long long val_) |
Call to set an unsigned long long value. More... | |
virtual | ~Config_Element () |
Destructor of the class. More... | |
Protected Attributes | |
bool | bval |
variable to store bool parameter value More... | |
double | dval |
variable to store double parameter value More... | |
long | ival |
variable to store int parameter value More... | |
long long | llval |
variable to store long long parameter value More... | |
std::string | name |
The name of the configuration property. More... | |
unsigned long long | ullval |
variable to store unsigned long long parameter value More... | |
A class describing a universal configuration element.
Can store one element at once, by setting a value other attributes are reset.
Definition at line 33 of file config_element.h.
Config_Element::Config_Element | ( | ) |
Nullary constructor of the class.
The name of the configuration property
variable to store double parameter value
variable to store bool parameter value
variable to store int parameter value
variable to store long long parameter value
variable to store unsigned long long parameter value
Definition at line 29 of file config_element.cpp.
|
virtual |
Destructor of the class.
Definition at line 53 of file config_element.cpp.
void Config_Element::get_property | ( | double & | val_ | ) |
Call to get a double value.
name | The name of the property |
val_ | The value of the property |
Definition at line 197 of file config_element.cpp.
void Config_Element::get_property | ( | bool & | val_ | ) |
Call to get a bool value.
name | The name of the property |
val_ | The value of the property |
Definition at line 211 of file config_element.cpp.
void Config_Element::get_property | ( | long & | val_ | ) |
Call to get an integer value.
name | The name of the property |
val_ | The value of the property |
Definition at line 223 of file config_element.cpp.
void Config_Element::get_property | ( | long long & | val_ | ) |
Call to get a long long value.
name | The name of the property |
val_ | The value of the property |
Definition at line 236 of file config_element.cpp.
void Config_Element::get_property | ( | unsigned long long & | val_ | ) |
Call to get an unsigned long long value.
name | The name of the property |
val_ | The value of the property |
Definition at line 249 of file config_element.cpp.
void Config_Element::set_property | ( | std::string | name_, |
double | val_ | ||
) |
Call to set a double value.
name | The name of the property |
val_ | The value of the property |
The name of the configuration property
variable to store double parameter value
variable to store bool parameter value
variable to store int parameter value
variable to store long long parameter value
variable to store unsigned long long parameter value
Definition at line 65 of file config_element.cpp.
void Config_Element::set_property | ( | std::string | name_, |
bool | val_ | ||
) |
Call to set a bool value.
name | The name of the property |
val_ | The value of the property |
The name of the configuration property
variable to store double parameter value
variable to store bool parameter value
variable to store int parameter value
variable to store long long parameter value
variable to store unsigned long long parameter value
Definition at line 92 of file config_element.cpp.
void Config_Element::set_property | ( | std::string | name_, |
long | val_ | ||
) |
Call to set an integer value.
name | The name of the property |
val_ | The value of the property |
The name of the configuration property
variable to store double parameter value
variable to store bool parameter value
variable to store int parameter value
variable to store long long parameter value
variable to store unsigned long long parameter value
Definition at line 118 of file config_element.cpp.
void Config_Element::set_property | ( | std::string | name_, |
long long | val_ | ||
) |
Call to set a long long value.
name | The name of the property |
val_ | The value of the property |
The name of the configuration property
variable to store double parameter value
variable to store bool parameter value
variable to store int parameter value
variable to store long long parameter value
variable to store unsigned long long parameter value
Definition at line 143 of file config_element.cpp.
void Config_Element::set_property | ( | std::string | name_, |
unsigned long long | val_ | ||
) |
Call to set an unsigned long long value.
name | The name of the property |
val_ | The value of the property |
The name of the configuration property
variable to store double parameter value
variable to store bool parameter value
variable to store int parameter value
variable to store long long parameter value
variable to store unsigned long long parameter value
Definition at line 168 of file config_element.cpp.
|
protected |
variable to store bool parameter value
Definition at line 45 of file config_element.h.
|
protected |
variable to store double parameter value
Definition at line 43 of file config_element.h.
|
protected |
variable to store int parameter value
Definition at line 47 of file config_element.h.
|
protected |
variable to store long long parameter value
Definition at line 49 of file config_element.h.
|
protected |
The name of the configuration property.
Definition at line 40 of file config_element.h.
|
protected |
variable to store unsigned long long parameter value
Definition at line 51 of file config_element.h.