Closed trbromley closed 1 year ago
Hi @trbromley, I think this feature is nice to have and a quick implementation can close this issue. Can you assign it to me?
Hey, can you assign this issue? I have submitted a pull request for review.
Hi @Gopal-Dahale and @anushkrishnav, welcome!
@anushkrishnav, thanks for opening a pull request! A member of the PennyLane development team will take a look and give feedback :ok_hand:
Feel free to post here if you have any questions, or check out our development guide!
Can you assign the issue for the Unitary hack bot?
Thanks @anushkrishnav for taking this on, and congrats on earning the bounty! :tada:
Thanks @anushkrishnav for taking this on, and congrats on earning the bounty! tada
Thank you so much !
Hi @anushkrishnav! As part of our 0.31 release, we're planning to promote UnitaryHack contributions to PennyLane on social media.
This is completely optional, but would you like to be mentioned in our social media posts? Specifically, we'd need either your Twitter profile, your LinkedIn profile, or your name.
Hi @anushkrishnav! As part of our 0.31 release, we're planning to promote UnitaryHack contributions to PennyLane on social media.
This is completely optional, but would you like to be mentioned in our social media posts? Specifically, we'd need either your Twitter profile, your LinkedIn profile, or your name. Sorry I had to deal with an emergency for the past week , just came back. That would be great, if it's not too late ! You can use all the 3 if you wish to Name: Anush Krishna Twitter: https://twitter.com/Anush_krishna_v Linkedln : https://www.linkedin.com/in/anush-krishna-v-8270941a0/
Feature details
PennyLane recently introduced the
ParametrizedHamiltonian
class. It allows users to define time-dependent parametrized Hamiltonians such as:The
H
can be evaluated for specific parameters and time:What if we want to inspect
H
directly? Users currently get the following:This is not informative. Instead, we would like the representation of
H
to provide useful information to the user.Implementation
The string representation of
H
in the example above can look like the following:my_func
that is at positioni
in the sum, the repr for that part should readmy_func(params_i, t)
my_func.__name__
. In this case, we can keep it simple and uselambda
as the name. We can also update the docs ofParametrizedHamiltonian
(and similar places) to avoid recommending use oflambda
(not a requirement for this issue).How important would you say this feature is?
1: Not important. Would be nice to have.
Additional information
No response