Predefined target type tags for common gate types. More...
Classes | |
struct | toffoli_tag |
Target Tag for Toffoli gates. More... | |
struct | fredkin_tag |
Target Tag for Fredkin gates. More... | |
struct | peres_tag |
Target Tag for Peres gates. More... | |
struct | v_tag |
Target Tag for V gates. More... | |
struct | vplus_tag |
Target Tag for V+ gates. More... | |
Namespaces | |
namespace | revkit |
Main namespace. | |
Functions | |
template<typename T > | |
bool | is_type (const boost::any &operand) |
Compares type of a boost::any variable. | |
bool | same_type (const gate &g1, const gate &g2) |
Checks if two gates have the same type. | |
bool | is_toffoli (const gate &g) |
Returns whether a gate is a Toffoli gate. | |
bool | is_fredkin (const gate &g) |
Returns whether a gate is a Fredkin gate. | |
bool | is_peres (const gate &g) |
Returns whether a gate is a Peres gate. | |
bool | is_v (const gate &g) |
Returns whether a gate is a V gate. | |
bool | is_vplus (const gate &g) |
Returns whether a gate is a V+ gate. |
Predefined target type tags for common gate types.