@@ -109,7 +109,7 @@ def execute_transpiled_circuit(
109
109
)
110
110
111
111
112
- def get_natives (platform ):
112
+ def natives (platform ):
113
113
"""
114
114
Return the list of native gates defined in the `platform`.
115
115
This function assumes the native gates to be the same for each
@@ -139,13 +139,14 @@ def rule(qubits_ids, platform, parameters=None):
139
139
return rule
140
140
141
141
142
- def set_compiler (backend , natives ):
142
+ def set_compiler (backend , natives_ ):
143
143
"""
144
144
Set the compiler to execute the native gates defined by the platform.
145
145
"""
146
146
compiler = backend .compiler
147
+ print ("EEEEEEE" , backend .natives )
147
148
rules = {}
148
- for native in natives :
149
+ for native in natives_ :
149
150
gate = getattr (gates , native )
150
151
if gate not in compiler .rules :
151
152
rules [gate ] = create_rule (native )
@@ -163,7 +164,7 @@ def dummy_transpiler(backend: Backend) -> Passes:
163
164
:func:`set_compiler`).
164
165
"""
165
166
platform = backend .platform
166
- native_gates = get_natives (platform )
167
+ native_gates = natives (platform )
167
168
set_compiler (backend , native_gates )
168
169
native_gates = [getattr (gates , x ) for x in native_gates ]
169
170
unroller = Unroller (NativeGates .from_gatelist (native_gates ))
0 commit comments