Get information about a device.
Returns a dictionary with device properties. Available keys depend
on the backend and device type. Common keys include device_name,
architecture, and total_memory (or memory_size).
- Parameters:
d (Device) – The device to query (defaults to the default device).
- Returns:
Device information.
- Return type:
dict