A quantum computer produces a default initial state for all qubits and measures in a default basis. It’s difficult to differentiate the errors associated with the state preparation from the errors associated with measurement so we often combine them into state preparation and measurement (SPAM) errors. Typically, a quantum algorithm is designed to put a set of qubits on a quantum computer into a desired quantum state, usually to solve a problem of interest.