View source on GitHub |
Get the gate definitions for the program.
cirq_rigetti.quil_input.get_defined_gates(
program: Program
) -> Tuple[Dict, Dict]
Will include the default SUPPORTED_GATES, in addition to any gates defined in the Quil
Args | |
---|---|
program
|
A pyquil program which may contain some DefGates. |
Returns | |
---|---|
A dictionary mapping quil gate names to Cirq Gates A dictionary mapping quil gate names to callable parameter transformers |