Skip to content
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

Enabling definition of multiple noise channels and noise channels in XY #647

Merged
merged 12 commits into from
Feb 15, 2024

Conversation

a-corni
Copy link
Collaborator

@a-corni a-corni commented Feb 13, 2024

@a-corni a-corni self-assigned this Feb 13, 2024
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@a-corni a-corni requested a review from HGSilveri February 13, 2024 11:56
@a-corni a-corni changed the title FIX: Including SPAM in XY mode, Enabling use of multiple noise channels in one simulation, Documentation on Noise FIX: Include SPAM in XY mode, Enable use of multiple noise channels in one simulation, Documentation on Noise Feb 13, 2024
pulser-simulation/pulser_simulation/simulation.py Outdated Show resolved Hide resolved
tests/test_simulation.py Outdated Show resolved Hide resolved
@a-corni a-corni changed the base branch from develop to master February 13, 2024 16:31
@HGSilveri
Copy link
Collaborator

This is starting to mix a fix and a feature 😅

@a-corni
Copy link
Collaborator Author

a-corni commented Feb 13, 2024

This is starting to mix a fix and a feature 😅

I am stopping here ;) In a way it's a fix since everything was already there 😇 But yes I could make a separate PR with only the fix (SPAM in XY), and later merge this one with the rest that is more development, and merge it into develop

@a-corni a-corni changed the base branch from master to develop February 14, 2024 08:20
@a-corni a-corni changed the title FIX: Include SPAM in XY mode, Enable use of multiple noise channels in one simulation, Documentation on Noise Enabling definition of multiple noise channels and noise channels in XY Feb 14, 2024
@a-corni
Copy link
Collaborator Author

a-corni commented Feb 15, 2024

@HGSilveri should I still handle kraus_ops.html (but redirecting it to the same notebook as effective_noise.html) ?

@HGSilveri
Copy link
Collaborator

@HGSilveri should I still handle kraus_ops.html (but redirecting it to the same notebook as effective_noise.html) ?

Isn't that done here already?

@a-corni
Copy link
Collaborator Author

a-corni commented Feb 15, 2024

@HGSilveri should I still handle kraus_ops.html (but redirecting it to the same notebook as effective_noise.html) ?

Isn't that done here already?

No I have only changed the name of the file 🙄 I will implement this then

@HGSilveri
Copy link
Collaborator

@HGSilveri should I still handle kraus_ops.html (but redirecting it to the same notebook as effective_noise.html) ?

Isn't that done here already?

No I have only changed the name of the file 🙄 I will implement this then

Then I think I don't get what you are referring to because I already see all the changes I thought were required

@a-corni
Copy link
Collaborator Author

a-corni commented Feb 15, 2024

@HGSilveri should I still handle kraus_ops.html (but redirecting it to the same notebook as effective_noise.html) ?

Isn't that done here already?

No I have only changed the name of the file 🙄 I will implement this then

Then I think I don't get what you are referring to because I already see all the changes I thought were required

Now I understand the confusion 😅 All done then

Copy link
Collaborator

@HGSilveri HGSilveri left a comment

Choose a reason for hiding this comment

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

LGTM!

assert sim._hamiltonian._bad_atoms == {
"atom0": True,
"atom1": False,
"atom2": True,
"atom3": False,
}
assert len(sim._hamiltonian._collapse_ops) // 4 == n_collapse_ops
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe divide by len(reg.qubits) to be clearer?

@HGSilveri HGSilveri merged commit c2d5b6c into develop Feb 15, 2024
7 checks passed
@HGSilveri HGSilveri deleted the add_XY branch February 15, 2024 16:12
@HGSilveri HGSilveri mentioned this pull request Apr 29, 2024
HGSilveri added a commit that referenced this pull request Apr 29, 2024
Main changes:

21a47f3 Remove Register.rotate() (#642)
20e6765 FIX: Redefine slope of RampWaveform (#644)
c2d5b6c Enabling definition of multiple noise channels and noise channels in XY (#647)
bcb78cc Enable digital simulation (#652)
0f6e3dd Improve access to output modulation durations (#663)
188d21d Remove deprecated noise arguments (#674)
f303138 Adding relaxation noise channel (#675)
716b86b Centralize all backend imports from a single pulser.backends module (#678)
96a8c34 Add hyperfine dephasing rate to NoiseModel (#680)
4981ca6 Add optional default noise models to devices (#676)
c695373 Rectangular lattice register and layout (#665)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants