silky / ProjectQ

ProjectQ: An open source software framework for quantum computing
Apache License 2.0
0 stars 1 forks source link

support math operations on gates directly #2

Open silky opened 7 years ago

silky commented 7 years ago

as if they were numpy matrices

i.e. so

-X is a valid gate.

silky commented 7 years ago

haha

this is quite broken because of the crazy way the code is implemented.

X is, of course, a global constant!!! so doing "-X" combined with my crazy implementation results in insanity.

silky commented 7 years ago

i think there will be a deeper way to fix this, but i don't need it for what i'm working on at the moment.