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

Density matrix implementation #394

Merged
merged 6 commits into from
May 30, 2022
Merged

Density matrix implementation #394

merged 6 commits into from
May 30, 2022

Conversation

GiggleLiu
Copy link
Member

@GiggleLiu GiggleLiu commented May 29, 2022

  • partial_tr
  • expect
  • probs
  • measure
  • instruct!
  • UnitaryChannel
  • zero_state_like
  • algebra +, -, *, /
  • inplace algebra regscale!, regadd!, regsub!

@codecov
Copy link

codecov bot commented May 29, 2022

Codecov Report

Merging #394 (88c1a8b) into master (c073d7e) will increase coverage by 0.18%.
The diff coverage is 99.29%.

@@            Coverage Diff             @@
##           master     #394      +/-   ##
==========================================
+ Coverage   88.72%   88.91%   +0.18%     
==========================================
  Files          73       73              
  Lines        4347     4448     +101     
==========================================
+ Hits         3857     3955      +98     
- Misses        490      493       +3     
Impacted Files Coverage Δ
lib/YaoBlocks/src/blocktools.jl 84.28% <ø> (ø)
lib/YaoBlocks/src/composite/control.jl 97.95% <ø> (ø)
lib/YaoBlocks/src/composite/kron.jl 95.12% <ø> (ø)
lib/YaoBlocks/src/composite/put_block.jl 100.00% <ø> (ø)
lib/YaoBlocks/src/composite/repeated.jl 100.00% <ø> (ø)
lib/YaoBlocks/src/composite/subroutine.jl 97.22% <ø> (ø)
lib/YaoBlocks/src/composite/tag/dagger.jl 86.36% <ø> (ø)
lib/YaoBlocks/src/primitive/identity_gate.jl 71.42% <ø> (ø)
lib/YaoBlocks/src/primitive/phase_gate.jl 95.00% <ø> (ø)
lib/YaoBlocks/src/primitive/shift_gate.jl 90.00% <ø> (ø)
... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d2682ca...88c1a8b. Read the comment docs.

@GiggleLiu GiggleLiu requested a review from Roger-luo May 29, 2022 04:04
@GiggleLiu
Copy link
Member Author

@Roger-luo I removed the method for applying a UnitaryChannel on ArrayReg to avoid confusing. Otherwise register and density matrix can have different outputs.

@Roger-luo Roger-luo merged commit 935f7a1 into master May 30, 2022
@Roger-luo Roger-luo deleted the jg/density-matrix branch May 30, 2022 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants