Shor's algorithm can definitely be simulated with QuDirac, and is certainly a good candidate for the `examples` folder :) I'm pretty crunched for time today and tomorrow but I'll see if I can't bang out an implementation this week and post it back here.
On Saturday, April 25, 2015 at 4:21:11 PM UTC-4, Christian Peel wrote: > > Nice! > > I'm curious how tough it would be to simulate Shor's algorithm, even if > it's just to factor 15; Is there some reason that this is too tough to > include as an example? > > chris > > On Thu, Apr 23, 2015 at 6:02 PM, Jarrett Revels <[email protected] > <javascript:>> wrote: > >> I'm happy to say that I've finally released QuDirac.jl >> <https://github.com/JuliaQuantum/QuDirac.jl>! >> >> This package is for performing common quantum mechanical operations using >> Dirac notation. >> >> Feature list: >> >> - Implementations of state types (`Ket`,`Bra`), and a variety of operator >> types (`OpSum`,`OuterProduct`) >> - Treat states and operators as map-like data structures, enabling >> label-based analysis for spectroscopy purposes >> - Implementation of common operations like partial trace (`ptrace`) and >> partial transpose (`ptranspose`) >> - Support for abstract/undefined inner products >> - User-definable custom inner product rules >> - Subspace selection/transformation via functions on state labels and >> coefficients: >> - `xsubspace` allows easy selection of excitation subspaces of states >> and operators >> - `permute` and `switch` allows generic permutation of factor labels >> for states >> - `filter`/`filter!` are supported on both the labels and >> coefficients of operators/states >> - Mapping functions (`map`/`maplabels`/`mapcoeffs`) for applying >> arbitrary functions to labels and coefficients >> - Functional generation of operators using `@def_op` and `@rep_op` >> - `d" ... "` literals for natural Dirac notation input syntax >> >> -- Jarrett >> > > > > -- > [email protected] <javascript:> >
