qp.labs.profiler

This module contains experimental features for visually profiling resource estimation.

Warning

This module is experimental. Frequent changes will occur, with no guarantees of stability or backwards compatibility.

Resource Profiler

profile(workflow[, gate_set, zeroed_wires, ...])

Profile the quantum resources required to implement a circuit or operator in terms of a given gate set.

export_flame_graph_data(root_node[, ...])

Converts a resource profile into a data structure compatible with icicle/flame-graphs rendering.

Base Class

ProfileNode([cmpr_op, scalar, gate_data, ...])

A node in the tree (call-graph) representation of a resource profile.