A device for liquefying a fluid is disclosed, the device comprising a fluid circuit (3) to be cooled, the device (1) comprising a
heat exchanger assembly (6, 7, 8, 9, 10, 11, 12, 13) in heat exchange with the fluid circuit (3) to be cooled, at least one first cooling
system (20) in heat exchange with at least one portion of the
heat exchanger assembly (6, 7, 8, 9, 10, 11, 12, 13), the first cooling
system (20) being a refrigerator having a cycle for refrigerating a cycle gas mainly comprising
helium, said refrigerator (20) comprising, in series in a cycle circuit (14): a mechanism (15) for compressing the cycle gas, at least one member (16, 5, 6, 8, 10, 12) for cooling the cycle gas, a mechanism (17) for expanding the cycle gas and at least one member (13, 12, 11, 10, 9, 8, 7, 6, 5) for reheating the expanded cycle gas, wherein the compression mechanism comprises at least four compression stages (15) in series made up of a
centrifugal compressor assembly (15), the compression stages (15) being mounted on a shaft (19, 190) driven in rotation by an
electric machine assembly (18), the expansion mechanism comprises at least three expansion stages in series made up of a set of radial turbines (17), the at least one member (16, 5, 6, 8, 10, 12) for cooling the cycle gas is configured to cool the cycle gas at the outlet of at least one of the turbines (17), and wherein at least one of the turbines (17) is coupled to the same shaft (19) as at least one compression stage (15) in order to supply the compression stage (15) with mechanical work produced during expansion.