GTorlai / PastaQ.jl

Package for Simulation, Tomography and Analysis of Quantum Computers
Apache License 2.0
145 stars 23 forks source link

Add appendlayer! function #62

Closed mtfishman closed 4 years ago

mtfishman commented 4 years ago

This PR adds the gatelayer and appendlayer! functions to replace the hadamardlayer[!] and related functions.

It also renames randomquantumcircuit to randomcircuit.

I still would like to replace twoqubitlayer! with a fancier version of appendlayer!, such as appendlayer!(gates, gatename, bonds; nqubit = 2), but that is not implemented yet.