Qaintum / Qaintessent.jl

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

added MatrixGate #41

Closed esthercruz closed 4 years ago

esthercruz commented 4 years ago

I added a MatrixGate <: AbstractGate with the purpose of creating a gate type from a matrix. The motivation comes from computing expectation values of an operator given in a matrix form by using the tensor_circuit function. This way is very simple to create user defined gates and can be done inside functions.

keefehuang commented 4 years ago

This implementation will help the Qaintensor implementation but may break certain functions in Qaintessent.jl. May need to shift this to Qaintensor.

keefehuang commented 4 years ago

Also requires unit tests for newly added MatrixGate