@@ -495,6 +495,7 @@ def get_openqasm_gates() -> list[str]:
495
495
PassType .MAPPING ,
496
496
stochastic = True ,
497
497
transpile_pass = lambda device : [
498
+ TrivialLayout (coupling_map = CouplingMap (device .build_coupling_map ())),
498
499
SafeAIRouting (coupling_map = device .build_coupling_map (), optimization_level = 3 , layout_mode = "optimize" ),
499
500
],
500
501
)
@@ -649,22 +650,22 @@ def get_openqasm_gates() -> list[str]:
649
650
)
650
651
)
651
652
652
- # register_action(
653
- # DeviceDependentAction(
654
- # "BQSKitSynthesis",
655
- # CompilationOrigin.BQSKIT,
656
- # PassType.SYNTHESIS,
657
- # transpile_pass=lambda device: lambda bqskit_circuit: bqskit_compile(
658
- # bqskit_circuit,
659
- # model=MachineModel(bqskit_circuit.num_qudits, gate_set=get_bqskit_native_gates(device)),
660
- # optimization_level=1 if os.getenv("GITHUB_ACTIONS") == "true" else 2,
661
- # synthesis_epsilon=1e-1 if os.getenv("GITHUB_ACTIONS") == "true" else 1e-8,
662
- # max_synthesis_size=2 if os.getenv("GITHUB_ACTIONS") == "true" else 3,
663
- # seed=10,
664
- # num_workers=1 if os.getenv("GITHUB_ACTIONS") == "true" else -1,
665
- # ),
666
- # )
667
- # )
653
+ register_action (
654
+ DeviceDependentAction (
655
+ "BQSKitSynthesis" ,
656
+ CompilationOrigin .BQSKIT ,
657
+ PassType .SYNTHESIS ,
658
+ transpile_pass = lambda device : lambda bqskit_circuit : bqskit_compile (
659
+ bqskit_circuit ,
660
+ model = MachineModel (bqskit_circuit .num_qudits , gate_set = get_bqskit_native_gates (device )),
661
+ optimization_level = 1 if os .getenv ("GITHUB_ACTIONS" ) == "true" else 2 ,
662
+ synthesis_epsilon = 1e-1 if os .getenv ("GITHUB_ACTIONS" ) == "true" else 1e-8 ,
663
+ max_synthesis_size = 2 if os .getenv ("GITHUB_ACTIONS" ) == "true" else 3 ,
664
+ seed = 10 ,
665
+ num_workers = 1 if os .getenv ("GITHUB_ACTIONS" ) == "true" else - 1 ,
666
+ ),
667
+ )
668
+ )
668
669
669
670
register_action (
670
671
DeviceIndependentAction (
0 commit comments