US stocks ended slightly higher as markets reacted to mixed corporate earnings and shifting geopolitical signals around Iran peace talks. S&P 500 and Dow rose, while Nvidia and Walmart fell on cautious outlooks. Quantum computing stocks surged after major US government investment, and manufacturing activity hit a four-year high.