Computer#

class Computer#

Base class for all quantum computers or simulators supported by Piquasso.

abstract execute(program: piquasso.api.program.Program, shots: int = 1) piquasso.api.result.Result#

Executes the program shots times.

Parameters
  • program (Program) – The program to be executes.

  • shots (int, optional) – The number of times the program should be executed. Defaults to 1.

Returns

The result of the execution containing shots number of samples.

Return type

Result