Tunable Quantum Neural Networks for Boolean Functions