QuantumComputer.run

QuantumComputer.run(executable, memory_map=None)[source]

Run a quil executable. If the executable contains declared parameters, then a memory map must be provided, which defines the runtime values of these parameters.

Parameters:
  • executable (Union[BinaryExecutableResponse, PyQuilExecutableResponse]) – The program to run. You are responsible for compiling this first.
  • memory_map (Optional[Dict[str, List[Union[int, float]]]]) – The mapping of declared parameters to their values. The values are a list of floats or integers.
Return type:

ndarray

Returns:

A numpy array of shape (trials, len(ro-register)) that contains 0s and 1s.