cirq_rigetti.quil_input.defgate_to_cirq

Convert a Quil DefGate to a Cirq Gate class.

For non-parametric gates, it's recommended to create MatrixGate object. This function is intended for the case of parametric gates.

defgate A quil gate defintion.

A subclass of Gate corresponding to the DefGate.