Session.run¶
- Session.run(program_id, inputs, options=None, callback=None, result_decoder=None)[source]¶
Run a program in the session.
- Parameters:
program_id (
str
) – Program ID.inputs (
Union
[Dict
,ParameterNamespace
]) – Program input parameters. These input values are passed to the runtime program.options (
Optional
[Dict
]) – Runtime options that control the execution environment. Seeqiskit_ibm_runtime.RuntimeOptions
for all available options, EXCEPTbackend
, which should be specified during session initialization.callback (
Optional
[Callable
]) – Callback function to be invoked for any interim results and final result.
- Return type:
- Returns:
Submitted job.
- Raises:
IBMInputValueError – If a backend is passed in through options that does not match the current session backend.