Skip to content

Profiler implementation for labs#9546

Open
Jaybsoni wants to merge 63 commits into
mainfrom
profiler_labs
Open

Profiler implementation for labs#9546
Jaybsoni wants to merge 63 commits into
mainfrom
profiler_labs

Conversation

@Jaybsoni

@Jaybsoni Jaybsoni commented May 29, 2026

Copy link
Copy Markdown
Contributor

Context:
Just looking at a resource estimate does not provide enough fine grain information for researchers. They would like to identify where the largest sources of resources are coming from in a quantum workflow. The profiler allows for resource tracking through the whole decomposition.

Description of the Change:
Added a profiler module to labs which contains the core logic for enabling this

  • Added profile function for extracting resource profile data
  • Added ProfileNode class for storing resource profile data
  • Added export_flame_graph_data function for visualization

Benefits:

  • Added visualization support for resource estimation

@Jaybsoni Jaybsoni added the do not merge ⚠️ Do not merge the pull request until this label is removed label May 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@codecov

codecov Bot commented May 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.46%. Comparing base (7f103e7) to head (862fe1d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9546   +/-   ##
=======================================
  Coverage   99.46%   99.46%           
=======================================
  Files         629      629           
  Lines       69158    69158           
=======================================
  Hits        68791    68791           
  Misses        367      367           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread pennylane/labs/estimator_beta/ops/op_math/__init__.py Outdated
@Jaybsoni Jaybsoni changed the title [WIP] Profiler implementation for labs Profiler implementation for labs Jun 23, 2026
@Jaybsoni Jaybsoni added review-ready 👌 PRs which are ready for review by someone from the core team. and removed do not merge ⚠️ Do not merge the pull request until this label is removed labels Jun 23, 2026

@ddhawan11 ddhawan11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Jaybsoni, left some comments

Comment thread doc/releases/changelog-dev.md Outdated
Comment thread pennylane/labs/profiler/extract.py Outdated
Comment thread pennylane/labs/profiler/__init__.py Outdated
Comment thread pennylane/labs/profiler/extract.py Outdated
Comment thread pennylane/labs/profiler/resource_profile.py Outdated
Comment thread pennylane/labs/profiler/resource_profile.py Outdated
Comment thread pennylane/labs/profiler/resource_profile.py Outdated
Comment thread pennylane/labs/profiler/resource_profile.py Outdated
Comment thread pennylane/labs/profiler/resource_profile.py Outdated
Comment thread pennylane/labs/tests/profiler/test_profiler.py Outdated
Jaybsoni and others added 6 commits June 23, 2026 15:25
@Jaybsoni Jaybsoni requested a review from ddhawan11 June 24, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-ready 👌 PRs which are ready for review by someone from the core team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants