def create_passmanager(self, coupling_map, initial_layout=None):
    'Returns a PassManager using self.pass_class(coupling_map, initial_layout)'
    passmanager = PassManager()
    if initial_layout:
        passmanager.append(SetLayout(Layout(initial_layout)))
    passmanager.append(self.pass_class(CouplingMap(coupling_map), **self.additional_args))
    return passmanager
Returns a PassManager using self.pass_class(coupling_map, initial_layout)
def create_passmanager(self, coupling_map, initial_layout=None):
    
    passmanager = PassManager()
    if initial_layout:
        passmanager.append(SetLayout(Layout(initial_layout)))
    passmanager.append(self.pass_class(CouplingMap(coupling_map), **self.additional_args))
    return passmanager