in src/braket/pennylane_plugin/translation.py [0:0]
def translate_operation(operation: Operation, *args, **kwargs) -> Gate:
"""Translates a PennyLane ``Operation`` into the corresponding Braket ``Gate``.
Args:
operation (Operation): The PennyLane ``Operation`` to translate
Returns:
Gate: The Braket gate corresponding to the given operation
"""
parameters = [p.numpy() if isinstance(p, qml.numpy.tensor) else p for p in operation.parameters]
return _translate_operation(operation, parameters)