@@ -157,8 +157,12 @@ def upload(self, program: QiskitFunction) -> Optional[RunnableQiskitFunction]:
157157 """Uploads program."""
158158
159159 @abstractmethod
160- def functions (self , ** kwargs ) -> List [RunnableQiskitFunction ]:
161- """Returns list of available programs."""
160+ def functions (self , provider : Optional [str ] = None , ** kwargs ) -> List [RunnableQiskitFunction ]:
161+ """Returns list of available programs.
162+
163+ Args:
164+ provider: if given, only functions belonging to this provider are returned.
165+ """
162166
163167 @abstractmethod
164168 def function (self , title : str , provider : Optional [str ] = None ) -> Optional [RunnableQiskitFunction ]:
@@ -174,12 +178,16 @@ def get(self, title: str, provider: Optional[str] = None) -> Optional[RunnableQi
174178 )
175179 return self .function (title , provider = provider )
176180
177- def list (self , ** kwargs ) -> List [RunnableQiskitFunction ]:
178- """Returns list of available programs."""
181+ def list (self , provider : Optional [str ] = None , ** kwargs ) -> List [RunnableQiskitFunction ]:
182+ """Returns list of available programs.
183+
184+ Args:
185+ provider: if given, only functions belonging to this provider are returned.
186+ """
179187 warnings .warn (
180188 "`list` method has been deprecated. "
181189 "And will be removed in future releases. "
182190 "Please, use `get_functions` instead." ,
183191 DeprecationWarning ,
184192 )
185- return self .functions (** kwargs )
193+ return self .functions (provider = provider , ** kwargs )
0 commit comments