Skip to content

adamglos92/QuantumInformation.jl

 
 

Repository files navigation

Build Status Coverage Status DOI

QuantumInformation

A Julia package for numerical computation in quantum information theory. Published in PLoS ONE.

Numerical investigations are prevalent in quantum information theory. Numerical experiments can be used to find counter examples for theorems, to test hypotheses or to gain insight about quantum objects and operations.

Our goal while designing QuantumInformation.jl library was to follow principles presented in book "Geometry of Quantum States'' [1]. We work with column vectors reprinting kets and row vectors representing bras. We fix our basis to the computational one. Density matrices and quantum channels are represented as two dimensional arrays in the same fixed basis. This approach allows us to obtain low level complexity of our code, high flexibility and good computational efficiency. The design choices where highly motivated by the properties of the language in which the our library was implemented, namely Julia [2].

Sampling random matrices on the GPU

We have introduced an experimental implementation of sampling of random matrices and random quantum objects on the GPU. In order to use this feature, the CuArrays package is required. To import QuantumInformation with GPU support use

using CuArrays, QuantumInformation

In order to sample use the curand method on a distribuiotn. For instance

julia> c = CUE(4096)
CircularEnsemble{2}(4096, GinibreEnsemble{2}(4096, 4096))

julia> @time rand(c);
 10.452419 seconds (8.22 k allocations: 2.005 GiB, 2.18% gc time)

julia> @time QuantumInformation.curand(c);
  0.459959 seconds (624.79 k allocations: 21.493 MiB)

Please report any bugs/problems and feature requests.

Package features

The purpose of QuantumInformation.jl library is to provide functions to:

  • creating and analyzing quantum states,
  • manipulating them with quantum channels
  • calculating functionals on these objects, i.e. trace norm, diamond norm, entropy, fidelity,
  • application of random matrix theory in quantum information processing.

How to cite

@article{Gawron2018,
  doi = {10.1371/journal.pone.0209358},
  url = {https://doi.org/10.1371/journal.pone.0209358},
  year  = {2018},
  month = {dec},
  publisher = {Public Library of Science ({PLoS})},
  volume = {13},
  number = {12},
  pages = {e0209358},
  author = {Piotr Gawron and Dariusz Kurzyk and {\L}ukasz Pawela},
  editor = {Nicholas Chancellor},
  title = {{QuantumInformation}.jl{\textemdash}A Julia package for numerical computation in quantum information theory},
  journal = {{PLOS} {ONE}}
}

[References](@id refs)

[1] I. Bengtsson, K. Życzkowski, Geometry of Quantum States: An Introduction to Quantum Entanglement, Cambridge University Press (2008).

[2] J. Bezanson, S. Karpinski, V. B. Shah, A. Edelman, Julia: A fast dynamic language for technical computing, preprint.

About

A Julia package for numerical computation in quantum information theory

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Julia 100.0%