Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Simulation and scientific validity

Can two different continuous frequencies produce the same recorded values?

A perfect sampled fit can describe the wrong oscillation

Source research checked . Teaching calculations are ideal models.

An oscilloscope or software logger records samples, not an unbroken view of a waveform. Different continuous signals can agree at those sample times. If an analysis chooses between them only by how well it fits the recorded values, it can have no basis for preferring the physically correct one.

The constructed experiment samples a zero-phase cosine at a fixed rate. Folding its frequency into the base interval gives an alias with the same ideal sample sequence. The numerical comparison makes the ambiguity concrete: two plotted continuous explanations can diverge between sample times while their recorded points coincide. More elaborate fitting does not recover information that the measurement procedure never distinguished.

This lesson applies to control waveforms, spectroscopy traces and simulated dynamics. A justified bandwidth limit, anti-alias filtering or a changed sampling schedule can supply the missing constraint. The example also distinguishes Fourier-bin spacing from a universal resolution claim. A longer record changes the analysis grid, but identifiability still depends on the signal model, window and measurement process.

Synthetic decision model

Start with the assumptions

  • The signal is a zero-phase cosine with a known fixed amplitude.
  • Sampling is exact and uniformly spaced.
  • Floating-point discrepancies are numerical error, not physical noise.

Samples occur at t_k = k/f_s

Cosine alias = |((f+f_s/2) modulo f_s)-f_s/2|

DFT-bin spacing = f_s/N

Synthetic a perfect sampled fit can describe the wrong oscillation plot: Sampled amplitude versus Sample number.
Synthetic baseline case. Horizontal axis: Sample number. Vertical axis: Sampled amplitude. Curves show Model. These are computed teaching examples, not measured hardware results.

Compare the input regimes

Each case uses invented inputs. The results follow from this model and do not describe measured hardware.

Baseline regime
Complete inputs
Sampling rate, Hz
80
Actual sinusoid frequency, Hz
91
Sample count
32
Signal amplitude
1
  1. Fold the actual frequency into the interval from zero to fs/2: |((f + fs/2) mod fs) - fs/2| = 11 Hz.
  2. Evaluate zero-phase cosines at t_k = k/fs for k = 0,...,31. The largest difference between actual and aliased sample values is 2.29816e-14, arising from floating-point arithmetic.
  3. The spacing of the discrete Fourier transform bins is fs/N = 2.5 Hz. This is a grid spacing, not a universal resolution limit or a proof that adjacent lines are separable.
Baseline regime · synthetic calculated results
Calculated quantitySynthetic result
Folded alias frequency, Hz11
Sampling Nyquist boundary, Hz40
Observation duration N/fs, seconds0.4
DFT-bin spacing fs/N, Hz2.5
Maximum numerical sample discrepancy2.29816166097e-14
First twelve of the uniformly spaced samples; full sequence follows the displayed cosine formula
IndexTime, secondsActual-frequency sampleAlias-frequency sample
0011
10.01250.649448048330.64944804833
20.025-0.15643446504-0.15643446504
30.0375-0.852640164354-0.852640164354
40.05-0.951056516295-0.951056516295
50.0625-0.382683432365-0.382683432365
60.0750.453990499740.45399049974
70.08750.9723699203980.972369920398
80.10.8090169943750.809016994375
90.11250.07845909572780.0784590957278
100.125-0.707106781187-0.707106781187
110.1375-0.996917333733-0.996917333733

The 91 Hz and 11 Hz zero-phase cosines give the same ideal sample sequence. A better-fitting sampled curve cannot identify which continuous signal was present. Filtering, an independently justified bandwidth limit or a changed sampling rate supplies information absent from the original samples.

Comparison regime
Complete inputs
Sampling rate, Hz
130
Actual sinusoid frequency, Hz
281
Sample count
40
Signal amplitude
1.5
  1. Fold the actual frequency into the interval from zero to fs/2: |((f + fs/2) mod fs) - fs/2| = 21 Hz.
  2. Evaluate zero-phase cosines at t_k = k/fs for k = 0,...,39. The largest difference between actual and aliased sample values is 1.00031e-13, arising from floating-point arithmetic.
  3. The spacing of the discrete Fourier transform bins is fs/N = 3.25 Hz. This is a grid spacing, not a universal resolution limit or a proof that adjacent lines are separable.
Comparison regime · synthetic calculated results
Calculated quantitySynthetic result
Folded alias frequency, Hz21
Sampling Nyquist boundary, Hz65
Observation duration N/fs, seconds0.307692307692
DFT-bin spacing fs/N, Hz3.25
Maximum numerical sample discrepancy1.00031094519e-13
First twelve of the uniformly spaced samples; full sequence follows the displayed cosine formula
IndexTime, secondsActual-frequency sampleAlias-frequency sample
001.51.5
10.007692307692310.7914603661590.791460366159
20.0153846153846-0.664787318399-0.664787318399
30.0230769230769-1.49299745208-1.49299745208
40.0307692307692-0.910743761728-0.910743761728
50.03846153846150.5319073305640.531907330564
60.04615384615381.472055189211.47205518921
70.05384615384621.021523788181.02152378818
80.0615384615385-0.394061067298-0.394061067298
90.0692307692308-1.43736874366-1.43736874366
100.0769230769231-1.12276612226-1.12276612226
110.08461538461540.2525355620210.252535562021

The 281 Hz and 21 Hz zero-phase cosines give the same ideal sample sequence. A better-fitting sampled curve cannot identify which continuous signal was present. Filtering, an independently justified bandwidth limit or a changed sampling rate supplies information absent from the original samples.

Extended regime
Complete inputs
Sampling rate, Hz
190
Actual sinusoid frequency, Hz
413
Sample count
40
Signal amplitude
2.1
  1. Fold the actual frequency into the interval from zero to fs/2: |((f + fs/2) mod fs) - fs/2| = 33 Hz.
  2. Evaluate zero-phase cosines at t_k = k/fs for k = 0,...,39. The largest difference between actual and aliased sample values is 9.54792e-14, arising from floating-point arithmetic.
  3. The spacing of the discrete Fourier transform bins is fs/N = 4.75 Hz. This is a grid spacing, not a universal resolution limit or a proof that adjacent lines are separable.
Extended regime · synthetic calculated results
Calculated quantitySynthetic result
Folded alias frequency, Hz33
Sampling Nyquist boundary, Hz95
Observation duration N/fs, seconds0.210526315789
DFT-bin spacing fs/N, Hz4.75
Maximum numerical sample discrepancy9.54791801178e-14
First twelve of the uniformly spaced samples; full sequence follows the displayed cosine formula
IndexTime, secondsActual-frequency sampleAlias-frequency sample
002.12.1
10.005263157894740.9688164422550.968816442255
20.0105263157895-1.20609019163-1.20609019163
30.0157894736842-2.08165454559-2.08165454559
40.0210526315789-0.714615666327-0.714615666327
50.02631578947371.422291300411.42229130041
60.03157894736842.026938711582.02693871158
70.03684210526320.4479292245620.447929224562
80.0421052631579-1.6136423328-1.6136423328
90.0473684210526-1.93680848545-1.93680848545
100.0526315789474-0.173416625492-0.173416625492
110.05789473684211.776800030081.77680003008

The 413 Hz and 33 Hz zero-phase cosines give the same ideal sample sequence. A better-fitting sampled curve cannot identify which continuous signal was present. Filtering, an independently justified bandwidth limit or a changed sampling rate supplies information absent from the original samples.

Try the reasoning: How would a second sampling rate or a verified analog bandwidth limit distinguish the continuous frequencies that share these samples?

Back to this lab in the catalog