Qaintum / Qaintessent.jl

Digital quantum circuit simulator written in Julia
Apache License 2.0
30 stars 8 forks source link

Added indexing of Circuits, appending of CircuitGateChains, approx of… #32

Closed keefehuang closed 4 years ago

keefehuang commented 4 years ago

Added indexing of Circuits: Circuits[i] = Circuits.cgc[i]

Added appending of CGC cgc = cgc1 * cgc2 -> Only allows appending if share {N} wires

Added approx comparison of cg gates cg \approx cg will compare all fields and match them if the two gates are of the same type.

keefehuang commented 4 years ago

This merge request also adds the "distribution" function that performs distribution(c, \psi) = apply(c.cgc, \psi)

keefehuang commented 4 years ago

This merge request also adds the "distribution" function that performs distribution(c, \psi) = apply(c.cgc, \psi)