Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to skip deepcopy on circuit_to_dag #9848

Merged
merged 1 commit into from
Mar 31, 2023

Commits on Mar 23, 2023

  1. Add option to skip deepcopy on circuit_to_dag

    Just as was done for Qiskit#9825 for dag_to_circuit(), this commit adds a new
    option, copy_operations, which allows to disable the deepcopy on
    circuit_to_dag(). Previously, the circuit to dag converter would always
    deep copy every operation, however we don't need this extra overhead
    in every case; where the input QuantumCircuit is discarded after
    conversion. This new flag lets us avoid the copy overhead in these
    situations, however in general the converter still needs to default to
    copying.
    mtreinish committed Mar 23, 2023
    Configuration menu
    Copy the full SHA
    cb3e5cc View commit details
    Browse the repository at this point in the history