Circuit.batch_pop

Circuit.batch_pop(points)[source]

Pop all operatons at points at once.

Parameters:

points (Iterable[CircuitPointLike]) – Remove operations at these points all at the same time.

Returns:

The circuit formed from all the popped operations.

Return type:

Circuit

Raises:
  • IndexError – If any of points are out-of-range.

  • IndexError – If all of points are invalid.