Quantum noise eater for a single photonic qubit