-
Notifications
You must be signed in to change notification settings - Fork 64
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 leakage noise in NoiseModel #714
Conversation
Thanks for this @a-corni ! |
Indeed ! I would like to first implement it for effective noise operator, and then have a look at implementing it with dephasing and depolarizing noise. For dephasing, we might want to have a error_dephasing_rate (like the hyperfine_dephasing_rate), but let's see this when it will be needed :) One thing I am not sure of is the way to go from this PR:
|
Let's go with the |
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.
I only have a few nits, so it's pretty much good for me. One thing though: wouldn't it perhaps make more sense to merge #715 first?
I thought that there were some |
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.
LGTM!
That's True, I will let you merge your PR, I will delete the TODOs in this PR afterwards. |
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.
Great!
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.
Sorry, I forgot to check the schema
pulser-core/pulser/json/abstract_repr/schemas/noise-schema.json
Outdated
Show resolved
Hide resolved
pulser-core/pulser/json/abstract_repr/schemas/noise-schema.json
Outdated
Show resolved
Hide resolved
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 for this review of the schema. I have followed your suggestions. Should I keep 'with_leakage' property in the repr as well ?
I thought about it and I'm torn actually. It's obviously redundant but if someone sets |
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.
Now I think we're good!
That's also my feeling, let's go with this :) |
Add the option to include leakage in NoiseModel.
It's currently done by modifying the parameter
with_leakage
in NoiseModel.with_leakage
is a boolean. It is associated with the noise type "leakage".For backward compatibility reason, with_leakage is an option in the schema of noise_model.
I have also added it with_leakage in the default values (if someone uses noise_types). However, I am not sure if the behaviour is correct:
with_leakage
to True.