qiskit_serverless.core.Target¶
- class Target(cpu=1, gpu=0, qpu=0, mem=1, resources=None, env_vars=None, pip=None)[source]¶
Qiskit Serverless target.
Example
>>> @distribute_task(target=Target(cpu=1)) >>> def awesome_function(): >>> return 42
- __init__(cpu=1, gpu=0, qpu=0, mem=1, resources=None, env_vars=None, pip=None)¶
Methods
__init__
([cpu, gpu, qpu, mem, resources, ...])from_dict
(dictionary)Converts dict to object.
to_dict
()Converts class to dict.
Attributes
cpu
env_vars
gpu
mem
pip
qpu
resources