The noncommutative replica approach