qml.labs.resource_estimation.add_in_parallel

add_in_parallel(first, other, in_place=False)[source]

Add two resources assuming the circuits are executed in parallel.

Parameters
  • first (Resources) – first resource object to combine

  • other (Resources) – other resource object to combine with

  • in_place (bool) – determines if the first Resources are modified in place (default False)

Returns

combined resources

Return type

Resources