pasqal-io / Pulser

Library for pulse-level/analog control of neutral atom devices. Emulator with QuTiP.
Apache License 2.0
159 stars 57 forks source link

Clarify confusion between kraus operators and collapse operators #616

Closed a-corni closed 6 months ago

a-corni commented 7 months ago

Given that qutip.mesolve uses collapse operators and not kraus operators, I propose to delete the trace of kraus operators in our code and documentation.

Closes #608

review-notebook-app[bot] commented 7 months ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

dehond commented 7 months ago
* [ ]  Rename variables refering to probabilities to rates. Could we keep probabilities and define the rate as gamma = proba / (duration of the sequence) @dehond ?

I'd suggest that ideally everything is relabeled as a rate so that nothing depends on the sequence length. If the decay rate of some excited state is 0.1/μs, the probability of decay during 1 μs is (approximately) 0.1, but how do we define the probability of decay during a 10 μs sequence, or longer?

If you'd like to turn it around we face similar issues: we know that the probability of decay during a 10 μs sequence is $1-e^{-1} = 0.63$, but it's not accurate to say that this means that the probability of decay during a 1 μs sequence is $0.63/10 = 0.063$.

a-corni commented 7 months ago
* [ ]  Rename variables refering to probabilities to rates. Could we keep probabilities and define the rate as gamma = proba / (duration of the sequence) @dehond ?

I'd suggest that ideally everything is relabeled as a rate so that nothing depends on the sequence length. If the decay rate of some excited state is 0.1/μs, the probability of decay during 1 μs is (approximately) 0.1, but how do we define the probability of decay during a 10 μs sequence, or longer?

If you'd like to turn it around we face similar issues: we know that the probability of decay during a 10 μs sequence is 1−e−1=0.63, but it's not accurate to say that this means that the probability of decay during a 1 μs sequence is 0.63/10=0.063.

Thanks Julius, I was also puzzled by these issues. I will implement the replacement of variables with _proba into _rate. I will put a DeprecationWarning signaling their deprecation.

a-corni commented 6 months ago

I think the notebook needs to be executed again

It should be good now :)

review-notebook-app[bot] commented 6 months ago

View / edit / reply to this conversation on ReviewNB

HGSilveri commented on 2023-12-14T10:57:44Z ----------------------------------------------------------------

The list does not seem to be rendering correctly on RTD


review-notebook-app[bot] commented 6 months ago

View / edit / reply to this conversation on ReviewNB

HGSilveri commented on 2023-12-14T10:57:45Z ----------------------------------------------------------------

I can see you cleared the outputs. Isn't this notebook taking a bit too long to run for it to be rerun on every docs build?


a-corni commented on 2023-12-15T10:57:01Z ----------------------------------------------------------------

It takes 28sec to run the whole notebook, that's eventually a bit too long indeed