from qiskit.providers.aer.noise import NoiseModel, thermal_relaxation_error, depolarizing_error
def noise_sycamore(scale):
noise = NoiseModel()
T1 = 25e-6 / scale
T2 = 35e-6 / scale
gate_time = 20e-9
dep1 = depolarizing_error(0.0001 * scale, 1)
dep2 = depolarizing_error(0.006 * scale, 2)
thermal = thermal_relaxation_error(T1, T2, gate_time)
noise.add_all_qubit_quantum_error(thermal, ['x','h'])
noise.add_all_qubit_quantum_error(dep1, ['x','h'])
noise.add_all_qubit_quantum_error(dep2, ['cx'])
return noise
def noise_aspen(scale):
noise = NoiseModel()
T1 = 40e-6 / scale
T2 = 50e-6 / scale
gate_time = 100e-9
dep1 = depolarizing_error(0.0002 * scale, 1)
dep2 = depolarizing_error(0.01 * scale, 2)
thermal = thermal_relaxation_error(T1, T2, gate_time)
noise.add_all_qubit_quantum_error(thermal, ['x','h'])
noise.add_all_qubit_quantum_error(dep1, ['x','h'])
noise.add_all_qubit_quantum_error(dep2, ['cx'])
return noise
def noise_ionq(scale):
noise = NoiseModel()
T1 = 1e9 # praticamente infinito
T2 = 1.0 # 1 segundo
gate_time = 200e-6
dep1 = depolarizing_error(0.000001 * scale, 1)
dep2 = depolarizing_error(0.001 * scale, 2)
thermal = thermal_relaxation_error(T1, T2, gate_time)
noise.add_all_qubit_quantum_error(thermal, ['x','h'])
noise.add_all_qubit_quantum_error(dep1, ['x','h'])
noise.add_all_qubit_quantum_error(dep2, ['cx'])
return noise








No comments:
Post a Comment