eclipse / xacc

XACC - eXtreme-scale Accelerator programming framework
https://xacc.readthedocs.io
BSD 3-Clause "New" or "Revised" License
165 stars 85 forks source link

Performance improvement for Circuit clone #525

Closed 1tnguyen closed 2 years ago

1tnguyen commented 2 years ago

Since we're doing a deep copy of the Circuit, we can safely bypass the pointer validation performed in addInstruction (each new instruction is a newly-allocated memory).

This will significantly speed up the cloning of big circuits.