-
Notifications
You must be signed in to change notification settings - Fork 15
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
Functions for generating common quantum states #164
Conversation
All the code coverage update in runtests failed. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #164 +/- ##
==========================================
+ Coverage 92.89% 93.10% +0.21%
==========================================
Files 27 28 +1
Lines 1956 2017 +61
==========================================
+ Hits 1817 1878 +61
Misses 139 139 ☔ View full report in Codecov by Sentry. |
okay, everything works fine again. |
src/qobj/states.jl
Outdated
β = log(1.0 / n + 1.0) | ||
N_list = Array{Float64}(0:N-1) | ||
data = exp.(-β .* N_list) | ||
return QuantumObject(spdiagm(0 => data ./ sum(data)), Operator, [N]) |
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.
We should also have the case of both dense and sparse case.
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.
okay
close #146
Summarize of this PR:
zero_ket
fock_dm
coherent_dm
thermal_dm
maximally_mixed_dm
jmat
spin_state
spin_coherent
bell_state
singlet_state
triplet_states
w_state
ghz_state
size_threshold_ignore = ["api.md"]