FIX: quantum in simple

+ remove unused vars