Quantum computer that first prepares an entangled resource state and then performs single qubit measurements on it