The natural product quinidine was polymerised with acrylamide and demonstrated as a H+-enabled, Cl−-disabled INHIBIT logic gate in water.