@@ -54,7 +54,9 @@ def test_aer_multiple_circuits():
5454 url = os .getenv ("QISKIT_SCALEWAY_API_URL" ),
5555 )
5656
57- backend = provider .get_backend (os .getenv ("QISKIT_SCALEWAY_BACKEND_NAME" , "aer_simulation_pop_c16m128" ))
57+ backend = provider .get_backend (
58+ os .getenv ("QISKIT_SCALEWAY_BACKEND_NAME" , "aer_simulation_pop_c16m128" )
59+ )
5860
5961 assert backend is not None
6062
@@ -94,16 +96,16 @@ def _get_noise_model():
9496
9597 # Error probabilities (exaggerated to get a noticeable effect for demonstration)
9698 prob_1 = 0.01 # 1-qubit gate
97- prob_2 = 0.1 # 2-qubit gate
99+ prob_2 = 0.1 # 2-qubit gate
98100
99101 # Depolarizing quantum errors
100102 error_1 = noise .depolarizing_error (prob_1 , 1 )
101103 error_2 = noise .depolarizing_error (prob_2 , 2 )
102104
103105 # Add errors to noise model
104106 noise_model = noise .NoiseModel ()
105- noise_model .add_all_qubit_quantum_error (error_1 , ['rz' , 'sx' , 'x' ])
106- noise_model .add_all_qubit_quantum_error (error_2 , ['cx' ])
107+ noise_model .add_all_qubit_quantum_error (error_1 , ["rz" , "sx" , "x" ])
108+ noise_model .add_all_qubit_quantum_error (error_2 , ["cx" ])
107109
108110 return noise_model
109111
@@ -131,7 +133,9 @@ def test_aer_with_noise_model():
131133 url = os .getenv ("QISKIT_SCALEWAY_API_URL" ),
132134 )
133135
134- backend = provider .get_backend (os .getenv ("QISKIT_SCALEWAY_BACKEND_NAME" , "aer_simulation_pop_c16m128" ))
136+ backend = provider .get_backend (
137+ os .getenv ("QISKIT_SCALEWAY_BACKEND_NAME" , "aer_simulation_pop_c16m128" )
138+ )
135139
136140 assert backend is not None
137141
@@ -159,7 +163,7 @@ def test_aer_with_noise_model():
159163 shots = 1000 ,
160164 max_parallel_experiments = 0 ,
161165 session_id = session_id ,
162- noise_model = _get_noise_model ()
166+ noise_model = _get_noise_model (),
163167 ).result ()
164168
165169 ideal_results = run_ideal_result .results
0 commit comments