code: def is_native_ion_gate(gate: ops.Gate) -> bool:
      
      return isinstance(gate, (ops.XXPowGate,
                               ops.MeasurementGate,
                               ops.XPowGate,
                               ops.YPowGate,
                               ops.ZPowGate))
docs: Check if a gate is a native ion gate.
  
      Args:
          gate: Input gate.
  
      Returns:
          True if the gate is native to the ion, false otherwise.