Mapping of quantum algorithms on a quantum chip