PennyLaneAI / catalyst

A JIT compiler for hybrid quantum programs in PennyLane
https://docs.pennylane.ai/projects/catalyst
Apache License 2.0
130 stars 29 forks source link

Make ``jax_tracer`` handle ``__name__`` for ``functools.partial`` #820

Closed tzunghanjuang closed 3 months ago

tzunghanjuang commented 3 months ago

Context: Add if-else case to get __name__ from functools.partial in jax_tracer.py.

Related GitHub Issues: #815 [sc-66088]

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.94%. Comparing base (46333bb) to head (98991d9). Report is 208 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #820 +/- ## ======================================= Coverage 97.93% 97.94% ======================================= Files 71 71 Lines 10184 10223 +39 Branches 888 893 +5 ======================================= + Hits 9974 10013 +39 Misses 167 167 Partials 43 43 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

erick-xanadu commented 3 months ago

@tzunghanjuang don't forget to add this to the changelog.