Quantum Cost of reversible logic circuit

Hello everyone, please what is the best practice in calculating quantum cost of a reversible logic circuit? is it after optimization or before optimization?