free handle

This commit is contained in:
tankya2
2023-07-17 14:33:38 +08:00
parent 3cb0fec99c
commit a17d8e6b78

View File

@@ -22,3 +22,5 @@ class QiboCircuitToMPS:
# apply the gate in-place
apply_gate(self.mps_tensors, gate, qubits, algorithm=gate_algo, options=self.options)
def __del__(self):
cutn.destroy(self.handle)