View source on GitHub |
Convert a Quil DefGate to a Cirq Gate class.
cirq_rigetti.quil_input.defgate_to_cirq(
defgate: DefGate
)
For non-parametric gates, it's recommended to create MatrixGate
object. This function is
intended for the case of parametric gates.
Args | |
---|---|
defgate
|
A quil gate defintion. |
Returns | |
---|---|
A subclass of Gate corresponding to the DefGate.
|