Statistical inference for quantum processes