Add QuantumCircuit.copy() benchmark. (Qiskit/qiskit-metapackage#838)

* Add QuantumCircuit.copy() benchmark.

* Update test/benchmarks/circuit_construction.py
This commit is contained in:
Matthew Treinish 2020-03-04 14:11:01 -05:00 committed by GitHub
parent c91b31fce5
commit cc0d490167
1 changed files with 3 additions and 0 deletions

View File

@ -45,3 +45,6 @@ class CircuitConstructionBench:
def time_circuit_extend(self, _, __): def time_circuit_extend(self, _, __):
self.empty_circuit.extend(self.sample_circuit) self.empty_circuit.extend(self.sample_circuit)
def time_circuit_copy(self, _, __):
self.sample_circuit.copy()