We may define the components of a state vector as the projections of the state on a complete, orthonormal set of states, like the eigenfunctions of a Hermitian operator.
With these definitions, Quantum Mechanics problems can be solved using the
matrix representation operators and states.
An operator acting on a state is a matrix times a vector.