Skip to content

Commit e1c0047

Browse files
ref: change get_natives name
1 parent 2ae7fde commit e1c0047

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/qibocal/auto/transpile.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def execute_transpiled_circuit(
109109
)
110110

111111

112-
def get_natives(platform):
112+
def natives(platform):
113113
"""
114114
Return the list of native gates defined in the `platform`.
115115
This function assumes the native gates to be the same for each
@@ -139,13 +139,14 @@ def rule(qubits_ids, platform, parameters=None):
139139
return rule
140140

141141

142-
def set_compiler(backend, natives):
142+
def set_compiler(backend, natives_):
143143
"""
144144
Set the compiler to execute the native gates defined by the platform.
145145
"""
146146
compiler = backend.compiler
147+
print("EEEEEEE", backend.natives)
147148
rules = {}
148-
for native in natives:
149+
for native in natives_:
149150
gate = getattr(gates, native)
150151
if gate not in compiler.rules:
151152
rules[gate] = create_rule(native)
@@ -163,7 +164,7 @@ def dummy_transpiler(backend: Backend) -> Passes:
163164
:func:`set_compiler`).
164165
"""
165166
platform = backend.platform
166-
native_gates = get_natives(platform)
167+
native_gates = natives(platform)
167168
set_compiler(backend, native_gates)
168169
native_gates = [getattr(gates, x) for x in native_gates]
169170
unroller = Unroller(NativeGates.from_gatelist(native_gates))

0 commit comments

Comments
 (0)