Locality and Error Mitigation of Quantum Circuits