Self-replication of a quantum artificial organism driven by single-photon pulses