Quantum Refiner