MachineFlow/Quantum Circuit · Shor simulation
Preview simulation
Accepted Logic Graph · Plan revision 1

Build and explain an interactive Next.js simulation of Shor's factoring workflow without claiming quantum-hardware execution.

Read-only · ephemeral
Factor selectionClick to select · ⌘/Ctrl-click or Shift-drag to group · Double-click for details · Drag nodes or the canvas to explore← UpstreamDownstream →bold = direct

Read-only sample · layout changes stay in this browser session

  1. Factor selection: Choose a bounded composite and valid base for one factoring experiment.
  2. Classical preflight: Reject invalid or already solved inputs before quantum period finding.
  3. Register sizing: Derive transparent counting and work register sizes for the selected composite.
  4. Modular exponentiation: Compute the modular orbit that defines the hidden periodic function.
  5. Superposition preparation: Represent an equal normalized basis-state superposition before phase encoding.
  6. Relative phase encoding: Translate modular periodicity into inspectable relative phase.
  7. Entanglement model: Expose bounded two-qubit correlation without implying signalling.
  8. Interference transform: Show how relative phase concentrates evidence into useful period candidates.
  9. Measurement peaks: Project the hidden period into bounded deterministic measurement peaks.
  10. Period inference: Recover and validate the smallest repeating modular period from observed evidence.
  11. Classical factor recovery: Recover a non-trivial factor pair from a useful even period.
  12. Simulation experience: Combine the mathematical trace, state animation, source map, and results in one executable page.