GTorlai / PastaQ.jl

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

Add randU gate type #61

Closed mtfishman closed 4 years ago

mtfishman commented 4 years ago

This adds a "randU" gate type as described in #59. It works for general number of indices, i.e. gate("randU", s1, s2, s3) makes a random unitary on 3 qubits. Closes #59.

The unitaries are Haar-distributed, as described in Section 4.6 of http://math.mit.edu/~edelman/publications/random_matrix_theory.pdf.