Consequently, another subject of the present invention is a thermopile having at least one active element consisting of a thin film of quasicrystalline alloy according to the present invention, preferably having, in alternation, active elements with a positive thermoelectric power and active elements with a negative thermoelectric power.