spin_pulse.environment.noise.quasistatic¶
Classes¶
Generate a quasi-static noise time trace for spin-qubit simulations. |
Module Contents¶
- class spin_pulse.environment.noise.quasistatic.QuasistaticNoiseTimeTrace(T2S, duration, segment_duration, seed=None)[source]¶
Bases:
spin_pulse.environment.noise.noise_time_trace.NoiseTimeTraceGenerate a quasi-static noise time trace for spin-qubit simulations.
This noise type produces a sequence of piecewise-constant Gaussian noise segments. Each segment has duration
segment_duration, and all samples within a segment share the same random value. The resulting noise corresponds to a quasi-static fluctuation with standard deviation determined by the coherence timeT2S.- - segment_duration
Duration of each constant-noise segment.
- Type:
- - sigma
Standard deviation of the quasistatic noise, computed as \(\sqrt{2}/T_2^*\).
- Type:
- - T2S
Coherence time parameter used to scale the noise.
- Type:
- - values
Array of noise values of length
duration.- Type:
ndarray
Initialize a quasi-static Gaussian noise trace.
The noise trace is constructed from repeated Gaussian segments of length
segment_duration. Each segment takes a single Gaussian random value with zero mean and standard deviation \(\sqrt{2}/T_2^*\). The total duration must be an integer multiple of the segment length.- Parameters:
- Raises:
ValueError – If
durationis not divisible bysegment_duration.
- plot_ramsey_contrast(ramsey_duration)[source]¶
Plot the analytical and simulated Ramsey contrast.
The analytical contrast \(\exp(-t^2 / T_2^{*2})\) is plotted together with the contrast returned by the parent
NoiseTimeTraceclass.- Parameters:
ramsey_duration (int) – Duration over which the Ramsey signal is evaluated.