zapata-engineering / orquestra-cirq

Apache License 2.0
1 stars 8 forks source link

Custom gates #32

Open VolodyaCO opened 2 years ago

VolodyaCO commented 2 years ago

Is your feature request related to a problem? If so, please describe it.

It is not related to a problem.

How you envision the solution

I want to be able to define custom gates as I can, for instance, with the qulacs simulator. For an example of custom gates you can check this PR

Describe alternatives you've considered

There's no alternative.

Additional context

n/a

max-radin commented 2 years ago

@VolodyaCO would the custom gate functionality described here work for you?

VolodyaCO commented 2 years ago

Thanks @max-radin for pointing the docs! (I should have looked there first) I have not tried those with the qsim simulator. I will do that tomorrow, probably.

It looks like a symbol theta is needed in the example, but I want to depart from sympy because it is very slow. I want to define custom gates using either numpy or jax in order to gain significant speed.