-
Notifications
You must be signed in to change notification settings - Fork 603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add_noise
transform for adding noise models
#5718
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Added a few questions and some nitpicking comments. Happy to approve once it's addressed.
One general suggestion for the tests, It feels abit choppy that some of the tests fall inside the class while others don't. I think you could probably put all of them in the class or remove the class completely. There doesn't seem to be any benefit to either, but having both makes things a little confusing. I leave the final decision to you though, so feel free to ignore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @obliviateandsurrender, just a few comments for now.
**Context:** Adds a transform for adding `NoiseModels`. **Description of the Change:** Adds `add_noise.py` under `pennylane/transforms` that gives the said method for inserting operations according to a provided noise model. **Benefits:** We support noise models. **Possible Drawbacks:** None. **Related GitHub Issues:** [sc-64843] --------- Co-authored-by: Jay Soni <jbsoni@uwaterloo.ca>
Context: Adds a transform for adding
NoiseModels
.Description of the Change: Adds
add_noise.py
underpennylane/transforms
that gives the said method for inserting operations according to a provided noise model.Benefits: We support noise models.
Possible Drawbacks: None.
Related GitHub Issues: [sc-64843]