QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.profiling.routine_tree.RoutineNode Class Reference

Public Member Functions

 __init__ (self, Wrapper routine, "RoutineNodeFactory" factory, dict gate_times, str unknown_name="Unknown")
 
 name (self)
 
 is_base (self)
 
 total_time (self)
 
 first_pass_routines_data (self, ProgramData data)
 

Public Attributes

 unknown_name = unknown_name
 
int self_time = 0
 
int subroutines_times = 0
 
 name
 

Protected Member Functions

 _first_pass_routines_data_impl (self, ProgramData data, int number_of_calls=1)
 

Static Protected Member Functions

int _get_gate_time (str gate_name, ty.Dict[str, int] gate_times)
 
bool _should_stop_recursion ("RoutineNode" node, ty.Dict[str, int] gate_times)
 

Protected Attributes

 _routine = routine
 
ty.List[] _subroutines = list()
 
ty.Dict[, int] _subroutines_counter
 

Constructor & Destructor Documentation

◆ __init__()

pyqpanda3.profiling.routine_tree.RoutineNode.__init__ ( self,
Wrapper routine,
"RoutineNodeFactory" factory,
dict gate_times,
str unknown_name = "Unknown" )

Member Function Documentation

◆ _first_pass_routines_data_impl()

pyqpanda3.profiling.routine_tree.RoutineNode._first_pass_routines_data_impl ( self,
ProgramData data,
int number_of_calls = 1 )
protected

◆ _get_gate_time()

int pyqpanda3.profiling.routine_tree.RoutineNode._get_gate_time ( str gate_name,
ty.Dict[str, int] gate_times )
staticprotected

◆ _should_stop_recursion()

bool pyqpanda3.profiling.routine_tree.RoutineNode._should_stop_recursion ( "RoutineNode" node,
ty.Dict[str, int] gate_times )
staticprotected

◆ first_pass_routines_data()

pyqpanda3.profiling.routine_tree.RoutineNode.first_pass_routines_data ( self,
ProgramData data )

◆ is_base()

pyqpanda3.profiling.routine_tree.RoutineNode.is_base ( self)

◆ name()

pyqpanda3.profiling.routine_tree.RoutineNode.name ( self)

◆ total_time()

pyqpanda3.profiling.routine_tree.RoutineNode.total_time ( self)

Member Data Documentation

◆ _routine

pyqpanda3.profiling.routine_tree.RoutineNode._routine = routine
protected

◆ _subroutines

pyqpanda3.profiling.routine_tree.RoutineNode._subroutines = list()
protected

◆ _subroutines_counter

ty.Dict[, int] pyqpanda3.profiling.routine_tree.RoutineNode._subroutines_counter
protected
Initial value:
= Counter(
self._subroutines
)

◆ name

pyqpanda3.profiling.routine_tree.RoutineNode.name

◆ self_time

int pyqpanda3.profiling.routine_tree.RoutineNode.self_time = 0

◆ subroutines_times

pyqpanda3.profiling.routine_tree.RoutineNode.subroutines_times = 0

◆ unknown_name

pyqpanda3.profiling.routine_tree.RoutineNode.unknown_name = unknown_name

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