Quantum Conservative Gates for Finite-valued Logics