qiskit_serverless.core.distribute_qiskit_function

distribute_qiskit_function(provider=None, dependencies=None, working_dir=None)[source]

[Experimental] QiskitFunction decorator to turn function into remotely executable program.

Example

>>> @distribute_qiskit_function(provider=ServerlessProvider(...), dependencies=[...])
>>> def my_program():
>>>     print("Hola!")
>>>
>>> job = my_program()
Parameters:
  • provider (Optional[Any]) – provider to use for program execution

  • dependencies (Optional[List[str]]) – dependencies for program

  • working_dir (Optional[str]) – working directory, which will be shipped for remote execution

Returns:

remotely executable program