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

Public Member Functions

 __init__ (self, main_routine, dict gate_times, wrapper=QPandaWrapper, **param)
 
ty.Union[str, bytes] export (self, BaseExporter exporter)
 

Protected Attributes

 _factory = RoutineNodeFactory()
 
 _root
 
ProgramData _program_data
 

Constructor & Destructor Documentation

◆ __init__()

pyqpanda3.profiling.routine_tree.RoutineTree.__init__ ( self,
main_routine,
dict gate_times,
wrapper = QPandaWrapper,
** param )

Member Function Documentation

◆ export()

ty.Union[str, bytes] pyqpanda3.profiling.routine_tree.RoutineTree.export ( self,
BaseExporter exporter )

Member Data Documentation

◆ _factory

pyqpanda3.profiling.routine_tree.RoutineTree._factory = RoutineNodeFactory()
protected

◆ _program_data

pyqpanda3.profiling.routine_tree.RoutineTree._program_data
protected
Initial value:
= ProgramData(
self._root.self_time + self._root.subroutines_times,
register_base_subroutine_calls=param.get('use_base_cell', True)
)

◆ _root

pyqpanda3.profiling.routine_tree.RoutineTree._root
protected
Initial value:
= self._factory.get(
wrapper(main_routine), gate_times
)

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