mirror of https://github.com/Qiskit/qiskit.git
Add QuantumCircuit.copy() benchmark. (Qiskit/qiskit-metapackage#838)
* Add QuantumCircuit.copy() benchmark. * Update test/benchmarks/circuit_construction.py
This commit is contained in:
parent
c91b31fce5
commit
cc0d490167
|
@ -45,3 +45,6 @@ class CircuitConstructionBench:
|
|||
|
||||
def time_circuit_extend(self, _, __):
|
||||
self.empty_circuit.extend(self.sample_circuit)
|
||||
|
||||
def time_circuit_copy(self, _, __):
|
||||
self.sample_circuit.copy()
|
||||
|
|
Loading…
Reference in New Issue