QPanda3
0.1.0
Supported by OriginQ
|
Classes | |
class | RoutineNode |
class | RoutineNodeFactory |
class | RoutineTree |
Functions | |
ty.Union[str, bytes] | profile (routine, dict gate_times, ty.Optional[ty.Dict[str, ty.Any]] exporter_kwargs=None, bool include_native_gates=True, **framework_kwargs) |
Profile the given routine. | |
ty.Union[str, bytes] pyqpanda3.profiling.routine_tree.profile | ( | routine, | |
dict | gate_times, | ||
ty.Optional[ty.Dict[str, ty.Any]] | exporter_kwargs = None, | ||
bool | include_native_gates = True, | ||
** | framework_kwargs ) |
Profile the given routine.
:param routine: The routine to profile. :param gate_times: A dictionary whose keys are routine names and values are the execution time of the associated routine name. :param exporter: The output format to use. Can be either an instance of a subclass of BaseExporter or a string. Possible string values can be found in the keys of qprof.exporters.default_exporters. :param exporter_kwargs: keyword arguments forwarded to the exporter. See the exporter documentation for details. :param include_native_gates: True to include native gates in the report, else False. If native gates are included, the self-time of all the non-native subroutines will be 0. :param framework_kwargs: keyword arguments forwarded to the framework-specific RoutineWrapper. See the RoutineWrapper documentation for details. :return: a string that is formatted like gprof's output.