You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in #67 , resuming an experiment causes the generation of (potentially previously already generated) qasm circuits because the configuration parameters such as n_shots, n_qubits etc. are extracted while generating those circuits.
Originally, this was implemented because it saves a call to a separate node which just extracts this information.
However this leads to an overhead when resuming the pipeline.
A solution could be to introduce a separate node, that extracts the aforementioned configuration parameters and passes them to the circuit generating function if required (required in terms of the circuit does not exist yet).
But this may add an additional delay when using multiprocessing because the actual workload of extracting a handful single values from a csv is very small in relation to the overhead introduced by multiprocessing.
Therefore I suggest to generate the circuits conditionally. I.e. leave the structure as is, but add a flag when instantiating the nodes that indicates if the circuit has to be generated or if it already exists on disk.
The structural code and the information already exists and therefore implementation effort would be minimal.
The text was updated successfully, but these errors were encountered:
As mentioned in #67 , resuming an experiment causes the generation of (potentially previously already generated) qasm circuits because the configuration parameters such as
n_shots
,n_qubits
etc. are extracted while generating those circuits.Originally, this was implemented because it saves a call to a separate node which just extracts this information.
However this leads to an overhead when resuming the pipeline.
A solution could be to introduce a separate node, that extracts the aforementioned configuration parameters and passes them to the circuit generating function if required (required in terms of the circuit does not exist yet).
But this may add an additional delay when using multiprocessing because the actual workload of extracting a handful single values from a csv is very small in relation to the overhead introduced by multiprocessing.
Therefore I suggest to generate the circuits conditionally. I.e. leave the structure as is, but add a flag when instantiating the nodes that indicates if the circuit has to be generated or if it already exists on disk.
The structural code and the information already exists and therefore implementation effort would be minimal.
The text was updated successfully, but these errors were encountered: