Optically initialized and current-controlled logical element based on antiferromagnetic-heavy metal heterostructures for neuromorphic computing