Orientation of a vector

How can one compute the quaternions (orientation) of a vector defined by two points in space?