Category Archives: Basic Physics

Representative Mechanisms of Quantum Computers

The following code simulates an ideal mathematical model of the inside of a quantum computer using a classical computer. This code is not “true quantum computation” in the following senses:・It does not manipulate actual qubits・It does not utilize quantum hardware・It does not involve decoherence or gate errors・It stores the entire amplitude in the memory of a classical computer・It… Read More »

Depth‑First Search (DFS) Classic AI Algorithms

Simple Python Example The code below shows a recursive DFS on an undirected graph represented as an adjacency list.Vertices are numbered starting from 0. Expected output Iterative (stack‑based) version If you prefer an explicit stack (e.g., to avoid Python’s recursion limit), here’s a compact iterative version: Both implementations produce the same visitation order; choose the style that best… Read More »

Period (T) and Frequency (f) – A Simple Explanation

Period (T) Frequency (f) Relationship Period and Frequency are inversely proportional to each other. They are related by the following formulas: f=1T T=1f Feature Period (T) Frequency (f) Meaning Time for one cycle Cycles per second Unit Seconds (s) Hertz (Hz) Relationship T = 1/f f = 1/T Analogy: “By the way, ocean waves travel through water, and… Read More »