Skip to content

Commit

Permalink
Removing redundant copy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderivrii committed Jan 12, 2023
1 parent e779ff9 commit 17f7ce0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _append_operation(clifford, operation, qargs=None):
from qiskit.quantum_info import Clifford

if isinstance(gate, Clifford):
composed_clifford = clifford.compose(gate.copy(), qargs=qargs.copy(), front=False)
composed_clifford = clifford.compose(gate, qargs=qargs, front=False)
clifford.tableau = composed_clifford.tableau
return clifford

Expand Down

0 comments on commit 17f7ce0

Please sign in to comment.