back to the dreu folder

Week 05 Research Log

Dates

July 6, 2026 - July 12, 2026

Goals

The goal for this week was to move beyond the initial Regev circuit prototype and begin building a more complete quantum-to-classical factoring pipeline.

Last week, the main focus was getting a Regev-style multidimensional circuit structure working. This week, I wanted to focus on the part that was still missing: taking measured multidimensional samples, constructing the appropriate lattice, applying lattice reduction, recovering candidate relations, and checking whether those relations can actually produce a factor.

Another goal was to make the implementation more careful and reproducible. I wanted to separate what the code can currently demonstrate from what is still incomplete, especially because a Regev-style circuit by itself is not the same as a full implementation of Regev's factoring algorithm.

I also wanted to follow the directions discussed with Dr. Fernando by going deeper into high-dimensional QFT behavior, roots of unity, Fourier matrix structure, finite precision, noise, and the classical post-processing that comes after the quantum sampling stage.

Approach and Implementation

This week began with a full audit of the existing Regev-style notebook. I traced the full path from the input integer N, through parameter selection, base generation, modular exponentiation, multidimensional QFT sampling, measurement decoding, and classical post-processing.

The current repository for this stage of the project is:

https://github.com/simransummermalik/TheoreticalComputing

A major issue I focused on was preserving the relationship between the original roots and the squared circuit bases. The quantum circuit uses squared bases, but the original roots still matter during classical post-processing. Without keeping those paired correctly, the classical stage can lose information needed to decide whether a recovered relation is useful for factor extraction.

I updated the implementation so that each root and squared base stay paired throughout the pipeline. I also added checks to make sure each stored base is actually the square of its paired root modulo N.

I then built out the lattice post-processing stage. The updated pipeline follows this structure:

quantum samples → augmented integer lattice → LLL reduction → candidate relation → relation classification → factor extraction

The implementation now constructs an augmented lattice from the measured samples, clears rational denominators exactly, applies integer LLL reduction, verifies the LLL transformation, tests candidate vectors as relations, distinguishes useful and non-useful relation classes, and only attempts GCD factor extraction when the relation is valid.

I also compared different sampling models. I worked with the original uniform hard-box sampler, a finite discrete-Gaussian sampler, and a theorem-consistent noisy dual-lattice model. This helped separate behavior caused by the finite practical implementation from behavior closer to the theoretical assumptions.

Another part of the work involved testing base-selection strategies. The original hypothesis was that selecting more diverse modular bases might improve lattice recovery. To test this, I created several controlled base-selection strategies and tested them across held-out semiprime inputs and multiple sampling models.

The result did not support the original positive hypothesis. Greater bounded-product diversity did not generally improve LLL factor recovery in the finite samplers. In some cases, it was negatively associated with recovery. However, the same pattern disappeared in the theorem-consistent noisy-dual model, which suggests that finite practical samplers may behave differently from the idealized model.

I also tested an L0-aware recovery idea. The motivation was that LLL might repeatedly return short but non-factor-yielding relations. I implemented quotient construction, exact integer deflation, adaptive resampling, bounded enumeration, and matched-cost comparisons. This intervention also did not improve recovery under the tested finite budgets, so I treated it as a negative result rather than changing the endpoint after seeing the data.

After the lattice work, I returned to the QFT side of the project. I implemented matrix-level validation for exact and approximate QFT circuits, including checks for forward versus inverse QFT signs, roots-of-unity conventions, controlled-phase angles, swap placement, qubit ordering, multidimensional coordinate ordering, unitarity, and measurement decoding.

I also implemented several error models, including approximate-QFT truncation, coherent phase error, readout bit flips, and Fourier-grid quantization. Instead of only looking at histograms or entropy, I measured the effect through the full endpoint: lattice recovery and factor extraction.

Results

The biggest result this week was that the project moved from an exploratory Regev-style circuit notebook into a more complete finite-parameter research pipeline.

The implementation can now follow the full path from multidimensional samples to augmented lattice construction, LLL reduction, relation classification, and factor extraction. This does not mean the project is a finished implementation of Regev's full factoring algorithm, but it is a much stronger experimental scaffold than the earlier circuit-only version.

Another important result was correcting how roots and squared bases are handled. The quantum circuit alone does not preserve all of the information needed for classical factor extraction. Keeping each original root paired with its squared base is necessary for checking whether a recovered relation is actually factor-yielding.

The base-selection experiments produced a useful negative result. Increasing the selected diversity metric did not generally improve factor recovery. The negative relationship appeared in finite uniform and Gaussian sampling models, but disappeared in the theorem-consistent noisy-dual model. This suggests that finite practical implementations should not automatically be expected to behave like the asymptotic theoretical model.

The quotient-deflation study produced another negative result. Removing or suppressing previously recovered non-factor-yielding relation directions did not improve recovery under the matched finite search budget. This suggests that standard LLL was not simply failing because it repeatedly returned the same useless relations.

The QFT analysis produced the strongest new direction. The current finite-shot certificate required the exact QFT over the tested parameter range. In other words, the current certificate could not justify controlled-phase truncation at the declared finite-shot loss level.

The careful conclusion is:

The current finite-shot QFT-to-lattice certificate cannot certify a non-exact QFT throughout the tested range.

This does not prove that approximate QFT can never work for Regev-style factoring. It only shows that the current sufficient certificate is too strict under the tested finite-parameter regime. The next question is whether this reflects a real information-loss barrier or whether the certificate is simply too conservative.

This week also improved the research methodology. The experiments now use frozen configurations, held-out semiprimes, matched computational budgets, fixed random seeds, cluster-aware confidence intervals, adversarial audits, automated regression tests, and reproducible result files.

Overall, this week made the project much closer to a serious computational research study instead of only a collection of circuit demonstrations.

Next Steps

The next major step is to determine whether the exact-QFT requirement comes from a real finite-parameter limitation or from looseness in the current proof.

I plan to audit the QFT certificate line by line and measure how much slack is introduced by worst-case inequalities, phase-error accumulation, sample-wise accumulation, and conversion from phase error to lattice displacement.

I also want to compare the certified behavior against empirical behavior. There may be cases where a truncated QFT still preserves factor recovery even though the current certificate refuses to approve it. If that happens, the next contribution could be a sharper certificate based on roots-of-unity cancellation, state-dependent matrix error, direct distribution distance, or the actual lattice endpoint.

Other next steps include expanding exact-fiber experiments, validating overlapping cases with actual Qiskit circuits, studying larger Fourier registers and dimensions, continuing comparisons between sparse corrupted samples and structured QFT errors, exploring HPC resources for larger simulations, and narrowing the work into one clear paper-level contribution.

The likely research question moving forward is:

How much multidimensional-QFT precision is actually required for finite Regev-style lattice recovery, and can a sharper, state-specific certificate safely reduce quantum resources?

Related Materials