Quantum Simulation of Single-Qubit Thermometry Using Linear Optics