Cirq icon indicating copy to clipboard operation
Cirq copied to clipboard

Engine should using sweepable slices to keep job sizes down

Open dabacon opened this issue 5 years ago • 3 comments

Follow up after #2106

Engine should take a repetition x parameter sweep size that it wants to break things into, and if the job is bigger than this break the job into multiple jobs of this size (or smaller).

One issue here is how to name these jobs.

dabacon avatar Sep 12 '19 23:09 dabacon

I can take this on. I'll plan to solve it in two steps:

  1. Add a function to combine two trial results together (provided they have same params and qubits measured).
  2. Add a new class EngineJobBatch which will manage the small enginejobs.

How does that sound ?

MichaelBroughton avatar Sep 22 '19 22:09 MichaelBroughton

@MichaelBroughton are you still interested in this? 1.) still sounds useful 2.) we might be able to get away with just implementing this in the methods of Engine, EngineProgram, adding the extra param max_job_size to it and then handle returning of multiple jobs and the merging of the TrialResults

balopat avatar Sep 16 '20 16:09 balopat

@wcourtney Did we add a maximum batch size to the client at some point? Do we still need this feature?

dstrain115 avatar Feb 07 '24 14:02 dstrain115