Quantum engineering with subgap and boundary modes