Commit caa5eff Luciano Bello
committed
1 parent b11d943 commit caa5eff Copy full SHA for caa5eff
File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,9 @@ def callback_func(**kwargs):
159
159
(isinstance (circuits , list ) and all (isinstance (c , Schedule ) for c in circuits )):
160
160
return circuits
161
161
162
+ if pass_manager :
163
+ return pass_manager .run (circuits , output_name = output_name , callback = callback )
164
+
162
165
if optimization_level is None :
163
166
config = user_config .get_config ()
164
167
optimization_level = config .get ('transpile_optimization_level' , None )
@@ -188,7 +191,7 @@ def callback_func(**kwargs):
188
191
'in {} ' .format (circuit .name ) +
189
192
'is greater than maximum ({}) ' .format (max_qubits ) +
190
193
'in the coupling_map' )
191
- # Transpile circuits in parallel
194
+
192
195
circuits = parallel_map (_transpile_circuit , list (zip (circuits , transpile_args )))
193
196
194
197
if len (circuits ) == 1 :
You can’t perform that action at this time.
0 commit comments