1 Introduction

n2EDM is the current state of the art experiment, carrying out a high-precision search for an electric dipole moment of the neutron [1] at the ultra-cold neutron source [2] of the Paul Scherrer Institute. The experiment will deliver an order of magnitude better sensitivity than previous efforts [3], down to \(1\times 10^{-27} e\) cm. The experiment precisely extracts the spin precession frequency of ultra-cold neutrons in a weak magnetic field, \(B_0\) and a strong electric field, E, via Ramsey’s method of separated oscillating fields [4]. In order to reach this sensitivity, a stable and uniform magnetic field environment is critical. Thus, shielding the precession chamber from external magnetic flux is crucial.

The n2EDM precession chamber is held in a magnetically shielded room (MSR), utilizing both active and passive magnetic shielding components [1, 5,6,7]. The active magnetic shielding compensates external magnetic-field drifts, maintaining a constant field environment on the outside of the MSR of \(\sim 1~\upmu \text {T}\) [7]. In the MSR, passive shielding materials are used to reduce the magnetic flux to the innermost volume [6]. Passive material often used for shielding have a high magnetic permeability, such as MUMETALL\(^{{\circledR }}\), a soft ferromagnetic alloy of nickel and iron used in the construction of this MSR.

The MSR inner volume is almost perfectly cubic, with a side length of 2.93 m and internal volume of 25 \(\text {m}^{3}\) for the experimental apparatus. The outside dimensions of the MSR is \(5.2~\hbox {m}\times 5.2~\hbox {m}\) horizontally and \(4.8~\hbox {m}\) vertically. To achieve a quasi-static shielding factor of \(\sim 10^5\) at 0.01 \(\text {Hz}\), the MSR is composed of seven shielding layers: one aluminium layer (serving as an eddy current shield) and six soft magnetic layers (five layers of MUMETALL\(^{{\circledR }}\) and one layer, “layer 6”, of the alloy ULTRAVAC 816\(^{\circledR }\)) [6].

The magnetic environment during data-taking for the n2EDM experiment consists of a constant, vertical magnetic field, \(B_0\), of about 1 \(\upmu \text {T}\) in the direction of the \(\pm z\)-axis, produced by a cuboid coil [1].

To obtain a pristine magnetic environment that is equilibrated to the weak magnetic field \(B_0\sim 1\) \(\upmu \text {T}\), contributions of the residual magnetic field must be near-zero. Near-zero residual magnetic field is achieved via “degaussing” the passive shielding, or “equilibrating” it to stable field conditions, with respect to the additional 1 \(\upmu \text {T}\) of the experiment.

Degaussing reduces, ideally “erases”, the residual magnetization of a material. It is typically done by applying a strong, alternating polarity, sinusoidal magnetic field. The magnetic flux must be initially strong enough to completely saturate the material everywhere, thereby erasing the previous magnetization state. The amplitude of the oscillating field then slowly decays to zero, producing randomized magnetic domains in the material. If the field does not decay to exactly zero, i.e., if any DC current offset exists, a residual magnetization will remain. See Refs. [8,9,10,11] for recent reviews and efforts of degaussing MSRs. Additionally, degaussing will heat the material. During the thermal relaxation after degaussing, magnetic field drifts occur. A reduction of dissipated heat would reduce the thermal relaxation time towards stable field conditions, and is therefore ideal.

To produce the alternating magnetic flux for degaussing, currents are applied to coils wound around the shielding layers. As also developed in Ref. [11], n2EDM features a novel distributed coil design for a more complete degaussing of the innermost shielding layer. A successful degaussing of the MSR, with low field values of below \(600~\text {pT}\) for the entire inner volume of the MSR (\(\sim 25\hbox {m}^3\)), has already been demonstrated in Ref. [6]. While the residual field found there is sufficient enough to allow for a sensitive n2EDM measurement, improvements were sought due to the long duration of the degaussing procedure (3.5 h) and the long thermal relaxation time after a degaussing (12 h).

In this article, we present further improvements to the degaussing procedure, including further reducing the residual magnetic field and improving its uniformity, all while taking less time and dissipating less heat. This paper presents the experimental constraints, discusses the degaussing design and procedure, and outlines improvements made.

2 Experimental requirements

In order to reach the sensitivity goal of the n2EDM experiment [1], the influence of the residual field on the overall strength and non-uniformity of the 1 \(\upmu \text {T}\) \(B_0\) magnetic field should be minimal. The specific design requirements is that the residual field must be below 500 pT in the central 1 \(\text {m}^{3}\) with a field gradient less than 300 \(\text {pT/m}\), see Ref. [1]. The length of time to degauss, and the heat dissipation due to degaussing, should be minimized to maximize available measurement time under stable magnetic-field conditions.

3 Design of the degaussing system

In order to degauss each layer of the MSR individually, coils are installed in order to produce a magnetic flux around each spatial direction, xy,  and z axes. This corresponds to xy,  and z degaussing. In the initial setup of the n2EDM degaussing system, we followed the procedures laid out in Refs. [8, 9].

The construction and installation of the coils were done by the company VAC,Footnote 1 which produced the MSR. Prior to mounting, all parts of the coils of the inner MSR were checked for magnetic contamination with a 3D superconducting quantum interference device (SQUID) array installed in the BMSR-2 of Physikalisch Technische Bundesanstalt (PTB), Berlin [13].

Fig. 1
figure 1

Arrangement of the degaussing coils, which produce flux around the z-axis on MSR layer 6 drawn as a cube box. The yellow square represents the access door. Label A (green): corner coils similar on all layers; Label B (red): additional coils only on layer 6; Label C (purple): additional smaller coils only on the layer 6 door. The blue arrows indicate the direction of the magnetic flux \(\Phi \) produced inside the shielding material by a current through the indicated coils

Fig. 2
figure 2

Scheme of the electrical connections from the DACs to the degaussing coils of layer 1. The relays K0.1 to K0.4 are the main switches, which can connect the supply rails “supply A” and “supply B” in either polarity to the power amplifier. The relays K1.1 to K1.3 are used to connect the degaussing coils of layer 1 to the supply rails, selecting which of the x-, y-, and z-degaussing coil is supplied with current. In order to activate the return path for layer 1, K1.0 is closed. In the idle state when the layer one coil is not powered, all K1 relays are open. Identical schemes are used for layers 2 to 5

Fig. 3
figure 3

The scheme of the relay connections for layer 6 is more elaborate then for the other layers. It enables connection to any of the three coils in series with arbitrary relative polarity. The signal always goes from the rails supply A to supply B (see Fig. 2). The relays K6.10, K6.20, and K6.30 select which coils are not powered by providing a current path that bypasses the coil. The hardware (using relay logic) does not permit all three of those relays to close simultaneously, avoiding a short circuit. When K6.10 is open, two of the relays K6.11 to K6.14 are closed in order to select in which polarity the current runs though the x degaussing coil of layer 6. The same scheme is used to power independently the y and z coils. In the idle state when the layer 6 coil is not powered all K6 relays are open

Fig. 4
figure 4

Visualization of magnetic flux across the surface of layer 6 during a simultaneous excitation of xy,  and z coils, when the coils are connected with the sign combination \(x_+y_-z_+\). The arrows indicate the flux direction inside the walls for a positive half-wave of the degaussing function. The dotted line indicates the corner axis around which the flux is generated. Here, the axis definition matches Fig. 1, where the red surface has the access door (again yellow)

3.1 Layers 1-5

The outer five MUMETALL\(^{\circledR }\) layers of the MSR (layers 1–5) follow the same coil design, with wires running along the edges, labeled A in Fig. 1 for the z-degaussing. x-, y-, and z-degaussing each has four coils along the edge of each spatial direction, making twelve coils per layer in total. Each coil has seven turns fabricated out of \(6~\text {mm}^2\) copper cables. The coils for each spatial direction are connected in series by a \(6~\text {mm}^2\) coaxial cable, where the shielding is used as a current return in order to avoid stray magnetic fields by the loop. Between the RF shield of the MSR and the electrical cabinet hosting the electrical circuits, the coaxial cables are additionally shielded by nested copper tubes. They protect against interference capacitively coupling to the degaussing coils, but do not connect the ground potential of the MSR and the special EMI-shielded electrical cabinet.

Inside the cabinet, relays can connect the cables from the coils to the power amplifier. Figure 2 shows the electrical scheme for connecting the power amplifier that is controlled by Digital-Analog-Converters (DACs) to the coils for layer 1. It allows for switching on and off the coils for the three spatial directions in a defined sequence. This is identical for layers 2–5.

3.2 Layer 6

The innermost ULTRAVAC\(^{\circledR }\) layer (layer 6) utilizes a distributed coil design in each spatial direction, using more coils over the width of the walls between each corner. The additional coils along the surfaces are labeled B and C in Fig. 1, where coils C specifically cover the MSR door.

This distributed design allows a more uniform magnetic flux to be obtained, and as a consequence, less residual magnetization along the edges and in the corners. See Ref. [11] for a detailed discussion on distributed coils.

Fig. 5
figure 5

Voltage monitoring of the Rohrer amplifier output as a function of time with a linear increase/decrease of amplitude. The zoomed inset shows the oscillating behavior. An up-time of \(1~\text {s}\), hold-time of \(1~\text {s}\), down-time of \(500~\text {s}\), and frequency of \(5~\text {Hz}\) is used

Each spatial direction, thus, has at least twelve coils – four on each corner plus two distributed approximately equidistant along the wall. In generating the magnetic flux around the x- and z-axis, two additional coils are used around the innermost MSR access door. Therefore, layer 6 has 40 coils in total.

In order to drive the coils in any combination of up to three spatial directions, each with independent polarities, at the same time, layer 6 also has a unique electrical scheme, see Fig. 3. For example, a flux generated simultaneously along xy,  and z would correspond to a flux around one of the four corner-axes of the MSR, see Fig. 4.

3.3 Generating the degaussing magnetic flux

In order to degauss a ferromagnetic material with an AC magnetic field, the material must first be magnetically saturated to remove the magnetic history. After saturation, any strong AC function with alternating sign and decreasing amplitude can lead to a non-magnetic material state (excluding any DC offset of the AC field), if enough cycles are used, and if done in a zero-field environment. For the n2EDM experiment, the outer 5 layers of the MSR provide a nearly zero-field environment for layer 6 degaussing.

We control the voltage over time supplied to the degaussing coil to produce a degaussing waveform. The supplied waveform is divided into three segments: “up-time” (time-to-peak), “hold-time” (time-at-peak), and “down-time” (time-to-zero). Additional parameters that can be varied are the maximal peak amplitude and the frequency. The final degaussing waveform to degauss with a finite number of cycles (i.e., finite time) is shown in Fig. 5. Although only linear ramps have been used, one could easily introduce non-linear ramps.

The frequency of the degaussing oscillation was reduced from 10 \(\text {Hz}\) used in the former setup, to 5 \(\text {Hz}\) here, in order to reduce the maximal current needed to reach saturation throughout the shielding material. The disadvantage of this is a prolonged degaussing time for the same number of down cycles. And practically, a transformer cannot be used to eliminate a DC offset on the degaussing signal after the power amplifier, as the lowest frequency for commercial transformers that fit the space constraints is 7 \(\text {Hz}\). Instead, the DC offset of the power amplifier is measured regularly with a multimeter and is adjusted to be 0 within \(\pm 0.005~\text {mV}\). Together with the chosen \(500~\text {s}\) down time (2500 down cycles), this was sufficient to prove that a polarity change does not lead to a significant residual field change. The DC offset was originally optimized with a magnetometer installed close to the MSR-center, searching for which offset led to the lowest residual field at this position. It was confirmed that a zero-voltage offset at the degaussing coil leads to the lowest residual field.

Fig. 6
figure 6

Voltage output of Rohrer amplifier as a function of current. The upper-left inset figure shows the voltage monitoring as a function of time, similar to Fig. 5, and is linear as the Rohrer is operated in voltage-mode. The different colors highlight which part of the degaussing waveform populates the current–voltage space. The lower-right inset is the same but for current as a function of time. See text for details

The degaussing waveform is generated by two DC-coupled 32 bit audio DACs with opposite polarity and converted to a single-ended signal by a low-noise differential amplifier. A Rohrer PA2088A 3.5 \(\text {kW}\) power amplifierFootnote 2 is operated in voltage mode and generates a high power signal of up to \(\pm 50~\text {V}\) proportional to the input waveform. Current and voltage monitoring is implemented using isolation amplifiers. Figure 6 shows the voltage vs current monitoring while degaussing along one axis in one layer. Reaching saturation is indicated by the nearly linear relation at the tips of the voltage-current curve of Fig. 6, showing the loss of the inductive part with the remaining ohmic part of the degaussing coil resistance. In practice, there will always be a small inductive part. Firstly, there are places where shielding material overlaps, and at the MSR access door, where shielding material is thicker, requiring very large currents to reach complete saturation. Additionally, for larger currents, the field lines will cross gaps between layers, and thus, use the next shielding layer as a return path. For sequential degaussing of layers 1–5, the field lines can also take the path over the two surfaces of the shielding layer that are not in the main path of the magnetic flux \(\Phi \) as indicated in Fig. 1.

3.4 Measuring residual magnetic fields

In order to quantify the residual magnetic field in the MSR after degaussing, a magnetic-field mapper was used. The magnetic-field mapper can move a low-noise Bartington MAG13 three-axis fluxgateFootnote 3 along the cyclindrical coordinates \(\rho ,\phi ,z\). The fluxgate can move between \(\phi \in [-30,380]^\circ \), \(\rho \in [-5,76]\) cm, and \(z\in [-39.6,50]\) cm, which samples a volume larger than the one relevant for n2EDM measurements. Due to the sampling time of the mapper in the large volume, magnetic field maps can be taken before and after degaussing for these studies, but not during. This mapper follows a similar design as the one utilized in the nEDM experiment [16] but with substantial upgrades. A more detailed description of the internal coil system of n2EDM, including the magnetic field mapper used here, will be part of a forthcoming publication [17].

We emphasize that the magnetic field mapping done in this work was accomplished with this automated mapper installed inside the MSR. This was not used in the work of Ref. [6]. Furthermore, here, the full magnetic coil system and vacuum vessel were both installed, neither of which were in place during the work of Ref. [6].

4 Degaussing procedure

During initial studies of the MSR, degaussing in layers 1–6 were performed identically. Working from outer layers to inner layers, each layer first had flux generated around x, then y, then z, independently. This is referred to as “serial” degaussing. Layers 1–5 only have the option to be degaussed serially due to the implemented switch setup, as shown in Fig. 2. Layer 6 has the additional flexibility to degauss simultaneous xy and z, as shown in Fig. 3. However, initially, it was degaussed serially as well. The degaussing waveform was also identical for each layer and each spatial axis: up-time of 200 \(\text {s}\), hold-time of 10 \(\text {s}\), down-time of 500 \(\text {s}\), and frequency of 5 \(\text {Hz}\). This waveform was initially chosen relying on previous works and experience. This degaussing procedure already allowed us to achieve extremely low residual field values over the inner volume of the MSR, as published in Ref. [6].

Fig. 7
figure 7

\(\phi \)-averaged transverse residual magnetic field, \(B_\perp \), at \(\rho =50\) cm, as a function of z, for the serial degaussing sequence (blue) and the simultaneous degaussing sequence with polarity \(x_+y_-z_+\) (red). The dashed line shows the average field sampled in \(\phi \) at \(\rho =50\) cm with fixed z points, and the envelope is \(2\sigma \) spread around the average at each z

Yet, with the aforementioned degaussing waveform and serially degaussing of each layer, a full degaussing of the MSR takes roughly 3.5 h. This procedure (which in the rest of this paper is referred to as the ‘previous sequence’) also introduces significant heat into the MSR. After a full degaussing, the residual magnetic field took many hours to thermally equilibrate (see discussion later).

With this in mind, a series of studies were performed to optimize the degaussing procedure with two goals: (1) reduce the time spent and heat dissipated of degaussing, and (2), minimize, and make more uniform, the residual magnetic field. In order to test the effectiveness of different degaussing procedures independently, layer 6 is magnetized before each degaussing. This is achieved by turning on the \(B_0\) field to 10 \(\upmu \text {T}\), magnetizing mainly in the z-direction (mapper coordinates). This is a factor of 10 higher than the nominal \(B_0\) field setting for n2EDM operation [1]. To magnetize in \(\phi \) and \(\rho \), it was observed that this can be achieved by a large DC current through the layer 6 y-axis degaussing coils. This yields a larger magnetization than expected during nominal operation. In comparison to the inside field, this magnetization is of similar magnitude when the MSR door is opened for maintenance and closed afterwards. After each degaussing test, the MSR was able to thermally equilibrate over a few hours, depending on the test, see below.

Fig. 8
figure 8

Same as Fig. 7 but for the serial degaussing sequence (blue) and the double-simultaneous degaussing sequence with polarity \(x_+y_-z_-\) then \(x_+y_-z_+\) (red)

Fig. 9
figure 9

Thermal relaxation effect on the residual magnetic field \(B_\rho \), after a full degaussing. (Left): using the previous sequence, the difference of the magnetic field at various wait times [4 (purple), 8 (teal), and 12 (blue) hours] and the field after 16 h, at \(\rho =50\) cm as a function of \(\phi \) for different z positions [(solid): \(z=-30\) cm, (dotted): \(z=-15\) cm, (dashed): \(z=0\) cm, (dotted-dashed): \(z=15\) cm, (loosely-dashed): \(z=30\) cm]. The different line styles indicate the various z positions sampled. (Right): The same but for the optimized degaussing sequence for wait times [0.5 (yellow), 1.0 (green), and 1.5 (red) hours]. Already after 1.5 h, the field has reached equilibrium with the state after 2 h, and, even initially, the field is much more uniform in \(\phi \). Uncertainty has been omitted for clarity, but the spread in the different lines of the same color give a sense of the field non-uniformity in the precession volume

4.1 Optimizing degaussing waveform

Since layers 1–5 only have the option to be degaussed serially, the obvious candidate for improvement of time-spent and heat-output is varying the degaussing waveform. The time and heat can be reduced with a shorter or smaller-amplitude degaussing waveform. Numerous studies were done varying the amplitude, up-time, down-time, and hold-time. For each test, layers 1-6 were always degaussed in the same manner.

It was found that an up-time of 1 \(\text {s}\), a hold-time of 1 \(\text {s}\), and a down-time of 500 \(\text {s}\) (see Fig. 5) produced similar residual magnetic field strengths as the previous sequence. This suggests that magnetic saturation can be reached quickly (in 1 \(\text {s}\)) and reliably with the setup of our system. This reduces the overall degaussing time from roughly 3.5 to 2.5 h. In addition, these changes significantly reduce the heat output, as the coils have the maximum current for only a tenth of the time as previous. Decreasing the amplitude worsened the residual magnetic field, and thus, was not changed.

4.2 Optimizing degaussing order

Layer 6 is the innermost layer, and therefore, has the largest effect on the residual field. Initially, the order of the degaussing axes was varied to investigate the impact on the strength of the residual magnetic field. Instead of degaussing layer 6 in order of xyz, a degaussing order of yxz was studied. This allows for a double-degaussing around the MSR access door in the last two steps, where it is assumed to have worse field uniformity due to the discontinuities in the MUMETALL\(^{\circledR }\). However, no significant improvement of the residual magnetic field with a yxz degaussing was found, while not ending the sequence along z always led to a worse residual field.

Layer 6 is also equipped with the possibility to degauss two or three axes simultaneously. This is the most appealing candidate for further reducing the residual magnetic field. Simultaneously degaussing around xy,  and z (i.e., producing magnetic flux around a corner-axis of the MSR) has a large potential to reduce the necessary time and heat impact. As layer 6 also has the flexibility to independently vary the polarity of the degaussing in each axis, there are 8 different flux variations: (1) \(x_+y_+z_+\), (2) \(x_+y_+z_-\), (3) \(x_+y_-z_+\), (4) \(x_+y_-z_-\), (5) \(x_-y_+z_+\), (6) \(x_-y_+z_-\), (7) \(x_-y_-z_+\), (8) \(x_-y_-z_-\). For example, Fig. 4 shows the flux direction (3), \(x_+y_-z_+\). The last four combinations are just an inversion of the current direction of the first four. For an AC degaussing, the overall sign should not have an impact if the down-time is long enough, and if the DC offset is close enough to zero.

Using the degaussing waveform with the smaller up- and hold-time as mentioned in Sect. 4.1, each of the 8 possible degaussing combinations were tested. In between each test, layer 6 was re-magnetized and the MSR was able to thermally equilibrate over 1.5 h. The shorter time necessary to equilibrate already reflects the reduced heat output of simultaneous degaussing.

It was found that degaussing xy,  and z simultaneously produced a similar residual magnetic field as the serial procedure, but with better uniformity. This is shown in Fig. 7 by the reduced envelope of \(\small {|\textbf{B}_\perp |=\sqrt{B_x^2 + B_y^2}}\), but similar central value. We compare the residual field at \(\rho =50~\text {cm}\), as this spans the inner-volume relevant for n2EDM. \(|\textbf{B}_\text {tot}|\) is not plotted as the fluxgate DC-offset for \(B_z\) was not determined here (see Fig. 11 for a high-resolution map that included the offset correction). It also takes significantly less time and dissipates less heat. However, this improved result was only achieved for the polarity configuration \(x_+y_-z_+\). The other polarity configurations yielded larger residual magnetic fields, but all had a significantly lower heat output than the previous sequence.

Fig. 10
figure 10

Temperature drift after starting a degaussing with the optimized sequence (red) and previous sequence (blue), measured by a thermocouple mounted on the inside of the MSR on layer 6. The solid lines indicate when the degaussing sequence is finished (red at \(\sim 2.5~\text {h}\) and blue at \(\sim 3.5~\text {h}\)). With the previous sequence, there is a significantly longer decay time until thermal stability (\(~\sim 12~\text {h}\)), whereas the new sequence reaches stability in about \(1.5~\text {h}\) after the degaussing finishes, as supported by Fig. 9

Fig. 11
figure 11

Average total residual magnetic field \(|\textbf{B}_\text {tot}(\textbf{r})|=\sqrt{B_x^2+B_y^2+B_z^2}\), as a function of distance from center of the vacuum tank, for the serial degaussing sequence (blue) and the optimized sequence (red). The envelope is \(2\sigma \) of the average field sampled in \(|\textbf{r}|=7~\text {cm}\) bins, where the bins are indicated by the horizontal bars. The optimized sequence includes a fluxgate correction for \(B_z\) (\(\sim \)90 pT), where the correction was extracted by rotating the fluxgate 180\(^\circ \). The previous sequence (*) did not measure this offset, due to a mechanical issue during the measurement, however the same correction that was extracted in the optimized sequence was applied here as well. This leaves an undetermined offset, added in quadrature, still possible to the blue curve

In order to try to reduce the residual magnetic field even more, two subsequent simultaneous degaussings were studied – i.e., first \(x_+y_+z_+\) then \(x_+y_-z_+\). A total of 12 tests were performed, using all combinations of two subsequent simultaneous degaussings.

Iterations that ended with the configuration \(x_+y_-z_+\) resulted in the smallest residual magnetic field. It was found that the sequence \(x_+y_-z_-\) then \(x_+y_-z_+\) performed the best, as shown in Fig. 8. This is likely due to generating magnetic flux in perpendicular directions through sides of the MUMETALL\(^{\circledR }\) and ULTRAVAC\(^{\circledR }\) that have more imperfections, most significantly at the sides of the MSR access door.

Double-degaussing using the same sequence (i.e., the same polarity configuration) did not yield improvements. It was also observed that additional simultaneous degaussings (i.e., more than a sequence of 2) did not reduce the residual magnetic field further. Thus, we found no need to do further degaussings of layer 6 beyond the two.

With the double simultaneous degaussing (\(x_+y_-z_-\) then \(x_+y_-z_+\)) and the shorter degaussing waveform, the time spent to degauss only layer 6 was reduced from 35.5 to \(16.7~\text {min}\), with a smaller residual magnetic field, and generated less heat as compared to the previous degaussing waveform. This marks a simultaneous improvement of all optimization criteria in the degaussing procedure.

4.3 New degaussing procedure

The optimized degaussing procedure for the full MSR is now: degauss layers 1–5 serially (in xy,  then z) and degauss layer 6 with a double simultaneous sequence of \(x_+y_-z_-\) then \(x_+y_-z_+\). All layers utilize the shorter degaussing waveform with an up-time of 1 \(\text {s}\), a hold-time of 1 \(\text {s}\), a down-time of 500 \(\text {s}\), and a frequency of 5 \(\text {Hz}\). The total time to fully degauss all layers of the MSR with the new procedure is roughly 2.4 h, down from roughly 3.5 h, excluding time for thermal relaxation.

In Fig. 9, the relaxation time of the residual magnetic field with the optimized procedure is compared to the previous degaussing procedure. With the less time taken to degauss and the less heat output, the optimized procedure yields a magnetic configuration that is already thermally stable after 1.5 h. This is an order of magnitude faster than the time to achieve thermal relaxation for the previous degaussing procedure (previously \(~\sim 12~\text {h}\)). Similarly, Fig. 10 shows the temperature difference of a sensor in the MSR after a degaussing has started. With the new sequence, there is a factor of \(\sim 4\) less rise in temperature, and a quicker time to thermal stability.

As compared to the previous serial degaussing of layers 1–6 with the longer degaussing waveform, the new procedure produces a substantially smaller residual field that is significantly more uniform in the innermost volume. For \(|\textbf{r}|\) up to \(50~\text {cm}\), the new procedure has at least a factor of 2 smaller residual field, and is a factor of 2 more uniform (less spread). Figure 11 illustrates the improvement of the average residual magnetic field for an inner volume of \(\sim 1.4~\hbox {m}^3\) for the simultaneous degaussing achieved as a result of this work, compared to the serial degaussing of layer 6 used previously.

5 Conclusions

We developed an optimized degaussing procedure of the magnetically shielded room for n2EDM, the next-generation experimental search of the neutron electric dipole moment at the Paul Scherrer Institute [1].

This procedure utilizes distributed coils, whose novel electrical design allows for producing a magnetic flux simultaneously across xy,  and z axes in the innermost, passive-shielding layer.

This resulted in a residual magnetic field was reduced down to below 300 pT in the inner spin precession volume (\(\sim 1.4~\hbox {m}^3\)) of the n2EDM experiment, despite the presence of the large experimental components inside the MSR. Even more, the residual field has been made more uniform, and all while taking less time to degauss and inputting less heat into the magnetic environment, allowing for faster thermal relaxation.

While a successful degaussing of the MSR was already demonstrated in Ref. [6], with low residual field values (below \(100~\text {pT}\) in the inner \(1~\hbox {m}^3\)), the field values found there and here are not directly comparable. For one, the magnetic mapper described here was not used in Ref. [6]. Additionally, the inner MSR now houses many components for the experiment, most significantly, a large vacuum tank, which contributes to the overall residual magnetic field. What is comparable are the results of Fig. 11, which showcase the performance of the previous and optimized degaussing sequence, with the same experimental components installed and same measurement procedure.

Looking to the future, further studies are planned to investigate the limits on how-small and how-uniform a residual magnetic field can be in such a large volume. These studies will include testing variable current amplitude or frequency during degaussing, such as Ref. [18] performed. We will also study how the residual field is impacted if we skip a degaussing of outer layers when the \(B_0\) field polarity is changed.