Skip to content

Commit

Permalink
Add QuantumCircuit.copy() benchmark. (Qiskit/qiskit-metapackage#838)
Browse files Browse the repository at this point in the history
* Add QuantumCircuit.copy() benchmark.

* Update test/benchmarks/circuit_construction.py
  • Loading branch information
mtreinish authored Mar 4, 2020
1 parent e573791 commit db2f1c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/benchmarks/circuit_construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ def time_circuit_construction(self, width, gates):

def time_circuit_extend(self, _, __):
self.empty_circuit.extend(self.sample_circuit)

def time_circuit_copy(self, _, __):
self.sample_circuit.copy()

0 comments on commit db2f1c8

Please sign in to comment.