JuliaAttic / QuBase.jl

A foundational library for quantum mechanics in Julia
Other
43 stars 6 forks source link

Partial trace implementation? #45

Open dnadlinger opened 8 years ago

dnadlinger commented 8 years ago

It seems to me like partial traces would be something required for many uses of JuliaQuantum, yet I couldn't find an implementation in QuBase.

Hacking something together really quick is not hard, but does anybody have a piece of code lying around that computes it the JuliaQuantum way?

amitjamadagni commented 8 years ago

@klickverbot I guess QuDOS.jl has ptrace implemented here, so I guess a work around should be possible to include it in QuBase.

acroy commented 8 years ago

Partial trace (and transpose) is certainly on our wish list (see also issue

7). As Amit said there is an implementation in QuDOS, but I didn't want to

port it over for license reasons. PRs are most welcome ;-) On So., 18. Okt. 2015 at 14:03, Amit notifications@github.com wrote:

@klickverbot https://github.com/klickverbot I guess QuDOS.jl has ptrace implemented here https://github.com/acroy/QuDOS.jl/blob/master/src/Qudos.jl, so I guess a work around should be possible to include it in QuBase.

— Reply to this email directly or view it on GitHub https://github.com/JuliaQuantum/QuBase.jl/issues/45#issuecomment-149005996 .

quantshah commented 8 years ago

In QuDirac, isn't partial trace implemented as ptrace ? Its there in the examples too ptrace(bell * bell', 1)

https://github.com/JuliaQuantum/QuDirac.jl/blob/master/src/opsum.jl#L342