Skip to content

Commit

Permalink
remove final measurements on circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
minwook-shin committed Oct 1, 2023
1 parent 93cc146 commit 3e27c36
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def actual_convert_action(self):
matrix_list = {"gate": [], "name": []}
# type validate
if isinstance(self.input_value, (List, QuantumCircuit)):
self.input_value = self.input_value.remove_final_measurements(inplace=False)
dag = self.qiskit.converters.circuit_to_dag(self.input_value)
else:
raise TypeError("QuantumCircuit is required.")
Expand Down

0 comments on commit 3e27c36

Please sign in to comment.