Appendix E
Practical work: from voltages to link reconstruction
Task and measurement files
The task of the workshop is to check, using time records of a four-node electrical circuit, whether ordinary connections with acceptable drift are sufficient. Three sets of voltages are given with letter labels. The analysis uses the same pre-written rules. Once completed, a separate file reveals the configuration that generated each entry. This is a software separation of data and markup; all signals were generated; the physical setup was not used in this experiment.
The conductances of ordinary edges 0-1, 1-2 and 2-3 are expressed as wₑ/R₀, where R₀=100 kOhm and 0.98≤wₑ≤1.02. Equal capacitances C₀=100 nF give the nominal intensity κ=1/(R₀C₀)=100 s⁻¹. An additional connection is understood as one of the edges 0-2, 0-3 or 1-3. Its intensity is allowed within the range from 0 to 60 s⁻¹. In the control configuration, the connection 0-3 with intensity 20 s⁻¹ was introduced.
File or directory | Contents |
revision2/data/rc/calibration.json | Nominals, initial voltage matrix, load, pitch, window, noise and solution rule |
sample_A_source_0.csv and similar | Time and four voltages for one initial preparation |
revision2/data/rc/truth_key.json | True parameters and seeds; analysis does not read this file |
revision2/results/rc_analysis.json | G estimates, total covariance, fits, and unlabeled solution |
revision2/results/rc_validation.json | Comparison with true response after markup expansion |
In total, 12 CSV is presented: three sets of four preparations. The header of each file is the same: time_s,v0_V,v1_V,v2_V,v3_V. It contains 5001 line of readings from 0 to 0.25 s with step 0.00005 s. The source number means the prepared state, the v number means the observed node. This separation prevents confusion between row and column of the response matrix.
The W matrix in calibration is measured in volts. Its jth column is equal to the actual initial vector for preparation j. Diagonal elements are close to 1 V; neighboring elements are equal to 0.0015 V. The rest are equal to zero. A small amount of mixing is intentionally included in the task so that processing does not depend on the assumption of an ideal unit excitation.
Preparation and physical scheme
For hardware implementation, four capacitors are used relative to the common wire and three replaceable resistors, as in figure 54. Each node has a separate voltage channel. Simultaneous counting is desirable; if a multiplexer is used, its delays are included in the time grid of each channel and are taken into account before integration. Input resistances and parasitic capacitances are measured along with the connected cables.
Before recording, low-impedance sources hold the specified voltages of the four nodes. All sources are then disconnected by a common trigger event, and the high-impedance meters continue monitoring. The initial voltages should be determined by recalibrating in the same switching mode. The ideal state eⱼ is not required: four clearly distinguishable columns of W are sufficient. What is important is the reproducibility of these columns and an independent estimate of their error.
Direct connection of only one node to the source while leaving the network free does not create the required initial state: the voltage has time to transfer to its neighbors. Therefore, either synchronous retention of all nodes or measurement of the actual resulting full vector is chosen. The opening of the switches must be faster than the significant network dynamics, and the transient surge is recorded or included in W. If the recording starts later, a new origin and the corresponding W are determined consistently.
Recovery between experiments is performed by actively resetting all nodes to a common wire. Passive waiting is not enough here: an ideal ungrounded network retains the total charge, and the load 1 GOhm gives a leakage time of about 100 s. Before the next preparation, the residual voltages are checked. After each series, they return to the original configuration to separate connection changes from slow drift.
The switching sequence and continuity of high-resistance monitoring are shown in Figure 59.
Figure 59. The cycle includes an active reset, simultaneous holding of four initial voltages, general disconnection of sources at t = 0 and recording of free dynamics. Buffers and ADC remain connected. Then the residual voltages are checked and all components are reset before the next preparation. The V_i(t) forms are conditional: they are calculated for an illustrative starting vector of the nominal circuit and do not replace the attached CSVs. The duration of preparation and reset is not specified numerically. Natural waiting does not replace the active removal of total charge.
Parameter | In this calculation | What is required during physical transfer |
R₀ and C₀ | 100 kOhm and 100 nF | Measured values and their uncertainties |
Input load | 1 GOhm in each node | Testing Resistance, Bias, and Input Capacitance |
Preparation matrix W | Specified exactly, cond(W)=1.0049 | Re-evaluation after switching |
Step and window | 50 μs and 0.25 s | Timeline and Delay Calibration |
Random counting error | 0.2 mV, independent Gaussian noise | Spectrum and interchannel covariance measurements |
If the actual capacitances differ markedly, the operator C⁻¹K and its symmetric form from (13.3) should be used. Changing the number C₀ in the program alone is not enough. For this workshop, the equality of capacitances is a verifiable prerequisite: the calculation file specifies it exactly, and the hardware protocol must either confirm it with the required error, or expand the model.
From a voltage matrix to a normalized response
Let us denote by Y(t) the matrix of recorded voltages: its columns correspond to four preparations. With a known identical load γ and without a random error, Y(t)=exp[−(L+γI)t]W. Multiplying on the right by W⁻¹ removes the mixing of preparations; the multiplier exp(γt) returns the unloaded network dynamics. In the numerical example, γ=1/(RinC₀)=0.01 s⁻¹.
The normalized response E is dimensionless. Its integral with weight exp(−st) has units of time. The parameter s here is real and positive; it specifies the damping of the integral weight and is not the sinusoidal excitation frequency in hertz. For current measurement at zero initial conditions, the same relationship has the form:
In this formula, K refers to the selected unloaded network. If the current response is measured with the same input load γ, then HVI,meas(s)=G(s+γ)/C₀. To restore the original G, a shift of the argument is required: G(s)=C₀HVI,meas(s−γ), for s>γ used here. In the initial state method, the same shift is implemented by the weight exp[−(s−γ)t].
If the teaching-network operator uses a unit intensity for an ordinary edge, while the physical apparatus has intensity κ, then Lphys=κLunit. The quantity s and the entire response matrix must be scaled consistently. For example, sunit=0.2 corresponds to 20 s⁻¹ when κ=100 s⁻¹; the physical G is a hundred times smaller than the value computed in the original network's time units.
Normalization to the reference also requires discipline. Here, G is estimated from the absolute voltages, and the nominal matrix G₀ is calculated from the calibration model. Therefore, ΔG=G−G₀ has the same random error covariance as G. If G₀ is obtained by a separate noisy record, its covariance is added; With common calibration parameters, cross terms appear. The uncertainty of the standard cannot be removed by simple subtraction.
The complete processing sequence and the control key disclosure branch separated from it are shown in Figure 60.
Figure 60. The calibration and decision rule are specified before analyzing the twelve CSVs. The normalized response is restored from the voltages, the known zero mode is subtracted before numerical integration, and it is returned analytically as P₀/s. Total covariance relates matrix elements and three s values from the same entries. The calibration shell is then checked, tail and quadrature are taken into account, diagnostic fits are made, and the solution is saved. The truth_key.json file is only used for subsequent validation; there is no way back to analysis.
Why a finite window is sufficient
The integral to finite T is different from the resolvent. For a well-known linear operator, the offset has the exact form:
A connected ungrounded graph has a known zero mode: the same voltage at all nodes. Its projector P₀=11ᵀ/4 does not decay. Therefore, the full voltage should not simply be cut off at the end of a short window. In this experiment, the common component is subtracted before integration and added back analytically as P₀/s. Only damped inhomogeneous modes remain to be integrated.
The weights qᵣ are the weights of the composite Simpson formula: h/3 at the ends, 4h/3 at the odd internal nodes and 2h/3 at the even ones. The number of intervals is 5000. The first non-zero eigenvalue of the nominal circuit is equal to 58.5786 s⁻¹, the largest is 341.4214 s⁻¹. If the usual weights are limited from below by the number 0.98, the damping of non-uniform modes is guaranteed to be no slower than 57.4071 s⁻¹.
For the chosen contrast with unit norm and zero sum components, the absolute tail under the hypothesis of ordinary connections is limited by exp[−(s+0.98λ₂)T]/(s+0.98λ₂). When s=20 s⁻¹ it does not exceed 5.10 × 10⁻¹¹ s. The conservative error limit of the Simpson formula is 1.60 × 10⁻¹⁰ s. Both values are much smaller than the standard random contrast error 2.36 × 10⁻⁷ s.
The quadrature bound refers to the null hypothesis with limited ordinary conductances: its scalar integrand is a positive mixture of damped exponentials. Tail and quadrature errors are added to the tolerance when testing this hypothesis. For a specific connection entered, the program additionally compares the processing of the clean record with the exact inverse matrix. The rate of deterministic error there is about 6.9 × 10⁻¹² s.
Figure 61. On the left are the synthetic voltages of four nodes after preparing 0 in the reference circuit. On the right is the full normalized heat trace and the average of the two extreme returns for a pure unloaded operator. Partial observation provides a different function, although both use the same network.
In the left panel of Figure 61, the voltages approach a common component of about a quarter volt. Restoring G preserves its analytical contribution. The right panel shows why the two available returns cannot be called a complete heat trace. In the reference circuit, the maximum absolute difference between these functions is about 0.102; it is caused by incomplete access, not noise.
Covariance from one time record
Let each initial voltage error be independent in time, channel and preparation and have a variance σV². After inverting W, the errors of different reconstructed columns are related, and after integration, different s are also related. To preserve both dependencies, it is convenient to denote M=W⁻¹ and aᵣ(s)=qᵣexp[−(s−γ)tᵣ]. Then the covariance of individual elements has the form:
The observation vector contains 48 elements: three values s along 16 directed matrix elements. The program plots the covariance of size 48×48 in the order “s, observed node, preparation.” It is positive definite for a given set of weights and invertible W. To calculate χ², the Cholesky decomposition is used so that the remainder is compared to the noise in consistent units.
Figure 62. On the left - correlations of random errors of Laplace integrals from one record for s=20,60,200 s⁻¹. On the right is the standard error of the selected contrast, conservative tail and quadrature bounds. The latter were calculated under the hypothesis of ordinary conductances within ±2%.
The correlation in Figure 62 remains high even for spaced values of s. If you remove off-diagonal elements, the previous entries will be mistakenly considered more independent. Dividing the integrals of one oscillogram into “training” and “testing” does not in itself create independent noise. For such a check, a separate record or a conditional distribution taking into account full covariance is needed.
For real colored noise, the formula (E.7) is replaced by transferring the measured covariance of the original samples through the same linear operator. If W, γ, or gains are also estimated in error, they add individual terms or become parameters of the admissible model. The attached program records them accurately in order to separately check the calculation and use of correlations for one time series.
Predefined calibration shell
The null hypothesis Hcal allows any combination of the three conventional weights within 0.98-1.02. It does not require the independence of their drift. Since each edge adds a positive semidefinite matrix, the order of the operators follows from the boundaries of the weights. Inverting positive definite matrices changes the direction of the inequality:
For a pre-selected a=(1,0,0,−1)/√2, the matrix inequality gives the interval for z=aᵀGa. When s=20 s⁻¹ the boundaries are equal to 0.01110051757 and 0.01143981347 s. They cover the entire admissible class of ordinary conductances, including the consistent drift of all three edges. This is the difference between such a check and the failure of a single numerical optimizer.
The error z is calculated from the same total covariance. In this set σz=2.3572 × 10⁻⁷ s. 5σz and two deterministic boundaries (E.6) are added to the interval on each side; the total margin is equal to 1.1788 × 10⁻⁶ s. For one preselected Gaussian contrast, a margin of five standard deviations has a known tail value. Here it serves as a specific rule of teaching experiment rather than as a statement of the level of significance of a broad search across multiple geometries.
Exceeding the extended interval rejects Hcal under the given assumptions. It does not prove the uniqueness of the extra edge among all possible physical causes: unknown capacitance, nonlinearity, incorrect time scale, or unaccounted load are other alternatives. Therefore, the solution is accompanied by a specification of the included parameters. Being inside the interval only means that the shell did not reject the class. For the compatibility of all observations, it is additionally required to find one common feasible vector of weights. In records B and C such a vector is found; An absolute absence of new connections does not follow from this.
Fitting and opening control configurations
Additionally, a nonlinear adjustment of Hcal is performed for all 48 values and three adjustments of Hcal+edge for candidates 0-2, 0-3, 1-3. The normal weights in both classes have the same boundaries. The intensity of the additional edge is non-negative. The objective function is the squared norm of the remainder, whitened by the total covariance. A successful fit demonstrates the compatibility of the found parameters; global exclusion of the local class relies on the envelope, not the solver status.
For the found vector of parameters, it is checked whether it falls into the joint 99-percentage noise ellipsoid of dimension 48. The fitted parameters are not subtracted from the number of measurements: the region of the feasible mean vector is constructed here, rather than a test of improvement of the extended model. The radius is equal to the root of the corresponding quantile χ² with 48 degrees of freedom plus a conservative bound for the whitened shift of the integral. For a local class it turns out to be about 8.64, for an allowed additional edge - 8.72. The presence of such a point is calculated evidence of compatibility. If the solver did not find it, this in itself does not prove that it does not exist.
For record A, the local model achieves χ²/48≈5.87 × 10⁶, and the model with the relationship 0-3 gives 0.871. Common weights in the extended fit are approximately 1.010048; 0.990024; 1.005033. The additional intensity estimate is 19.9974 s⁻¹. After opening the markings, it turns out that the weights 1.01 have been entered; 0.99; 1.005 and intensity 20 s⁻¹. The example is deliberately chosen to be easily distinguishable.
Record B is obtained from the nominal weights 1;1;1. Its local fit gives χ²/48=1.028. Records C contain the weights 1.015;0.985;1.01 without a new edge; value χ²/48=1.149. In both cases, a small additional positive edge sometimes slightly reduces the remainder, but the rule does not declare it necessary. This shows why it would be a wrong procedure to always select the extended model only by the smaller χ².
Check after disclosure | A | B | C |
Relative error of the entire G according to the Frobenius norm | 0.00186% | 0.00222% | 0.00197% |
Maximum absolute error of element G | 4.61 × 10⁻⁷ s | 4.35 × 10⁻⁷ s | 4.41 × 10⁻⁷ s |
χ²/48 of the best model with an additional edge | 0.871 | 1.027 | 1.149 |
Global shell Hcal | Violated | Complied with | Complied with |
These are three test realizations and not a statistical estimate of the error rate of the entire algorithm. Seeds and full initial parameters are saved to repeat a specific calculation. To estimate the operating range, it is necessary to pre-specify the series in terms of coupling amplitude, capacitance uncertainty, load and noise. The limit of such a range will be a property of the selected layout and measurement procedure.
Full trace and monitored ports
The heat trace of a complete N-node operator is equal to the average of N diagonal returns. To directly measure it, it is necessary to prepare and observe each node or apply a separately validated method for estimating the trace. In a four-node practice, full access exists, so both functions in the right panel of figure 61 are uniquely evaluated.
If only the outermost ports are available, the second function is measured. It weighs more strongly the modes visible at the ends of the chain and therefore has a different time dependence. Its logarithmic slope can be described as a measure of the selected observed return, but without further justification it is not equal to the spectral dimension of the full operator.
Even the full trace of four nodes does not provide a wide power-law range. At very short times, discreteness appears; at long times, the zero mode remains and P→1/4. The main task of a small experiment is to restore the known dynamics and check the measurement transformations. Going to 64 nodes with eight ports preserves the matrix procedure of the observed block, but does not automatically give the entire heat trace.
Calibration order and independent repetitions
First, one RC circuit is tested: time constant, polarity, voltage scale and timing error. Then four nodes are connected without an additional edge. Actual capacitances are measured taking into account inputs, conductance and leakage currents. Several repetitions of the preparation give the average W and its variability. If the calibration error is comparable to the desired effect, it is included in the feasible model before processing the control configurations.
The next pass is performed with the circuit stationary and zero excitation to evaluate the intrinsic offsets, noise bandwidth, and overall channel interference. The standard is then recorded during normal preparation. Changing the polarity and amplitude allows you to check linearity. For each such impact, it is the predicted normalized response that is compared; arbitrary reconfiguration of coefficients after the result deprives the test of independence.
The control link is established by the operator, who stores the markup separately from the analyzer. After the series, it is useful to repeat the original connection. If the standard has changed, the sequence itself shows the drift and makes it possible to limit its magnitude. Testing on a new time series uses a new preparation and a new record; the additional integrals of the previous series remain correlated data.
During hardware acceptance, a small change in one capacitance and an increase in the input load are added to the three executed configurations. These two additional controls are specifically outside the narrow Hcal of this executable example. The correct response of the procedure is to detect the discrepancy and expand the hardware model, rather than automatically assigning any anomaly to a new edge.
Reproduction and reanalysis
The accompanying kit allows you to repeat the entire calculation: create synthetic records, perform analysis without access to the key, then separately open the markup and build drawings. Commands and requirements for the computing environment are given in the instructions for calculations.
When analyzing your own records, calibration information and observed voltages are used; the true markup key is not included in the calculation. Files must adhere to the specified schema and prerequisites. For colored noise or unequal capacitances, the appropriate covariance or dynamics model needs to be modified.
The result obtained completes the specific task: the response in seconds is reconstructed from the voltage readings, its joint error is calculated, the limited local class is verified, and a compatible explanation for the strong control signal is found. The next step is to replace the synthetic calibration with measured parameters. This is when promises about the accuracy of a physical device become verifiable.



