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

[TODO] Density Matrix Interfaces #395

Open
5 tasks
GiggleLiu opened this issue May 29, 2022 · 3 comments
Open
5 tasks

[TODO] Density Matrix Interfaces #395

GiggleLiu opened this issue May 29, 2022 · 3 comments

Comments

@GiggleLiu
Copy link
Member

GiggleLiu commented May 29, 2022

  • noise channels
  • partial transpose
  • POVM measurement
  • Master equation
  • Define the apply function for put(n, i=>unitary_channel(...)) on density matrix
@jlbosse
Copy link
Contributor

jlbosse commented Mar 6, 2023

I was looking into implementing intermediate measurements with measure!() for DensityMatrixes. One option is to reimplement most of the YaoAPI.measure!() logic here for density matrices. The other option is to implement focus! and relax! for density matrices. As far as I can tell, it should be possible to implement focus! and relax! s.t. density matrices are 4-dimensional arrays and instruct! still works correctly. Tough the downside of that would be that a lot of the stuff like von_neumann_entropy, mutual_information etc. will need to reshape the 4-dimensional dm.state to a 2-dimensional matrix to work.

@GiggleLiu
Copy link
Member Author

Implementing focus! and relax! for density matrices may not be easy easy. These two functions are for selecting system qubits, which may cause loss of information for density matrices. I would suggest implementing measure! directly.

@jlbosse
Copy link
Contributor

jlbosse commented Mar 9, 2023

I am not sure I follow. How would focus! and relax! loose information?

My idea was to change DensityMatrix is a 2^nactive × 2^nremain × 2^nactive × 2^nremain array (assuming qubits, remain 2 with nlevel for qudits). Of course, this would imply quite a few changes for all functions that currently use matrix algebra, like tr, mutual_information etc..

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

No branches or pull requests

2 participants