If you have a space between the carpet's tackless strip, and the base molding, maybe you could run wire there?
Also, sometimes in carpeted rooms, the base molding has a half inch space, between it and the floor. That may be another place to run the wire.
Over time any wire that is subjected to foot traffic, will fray.
Good Luck, and be carefull out there.