Classes | Namespaces | Functions
target_tags.hpp File Reference

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...
 
struct  module_tag
 Target Tag for Modules. More...
 

Namespaces

namespace  revkit
 Main namespace.
 

Functions

template<typename T >
bool is_type (const boost::any &operand)
 Compares type of a boost::any variable. More...
 
bool same_type (const gate &g1, const gate &g2)
 Checks if two gates have the same type. More...
 
bool is_toffoli (const gate &g)
 Returns whether a gate is a Toffoli gate. More...
 
bool is_fredkin (const gate &g)
 Returns whether a gate is a Fredkin gate. More...
 
bool is_peres (const gate &g)
 Returns whether a gate is a Peres gate. More...
 
bool is_v (const gate &g)
 Returns whether a gate is a V gate. More...
 
bool is_vplus (const gate &g)
 Returns whether a gate is a V+ gate. More...
 
bool is_module (const gate &g)
 Returns whether a gate is a module. More...
 

Detailed Description

Predefined target type tags for common gate types.

See Also
Target Tags

Generated on Tue Apr 16 2013 08:12:02 for RevKit by doxygen 1.8.3.1