This is an automated email from the ASF dual-hosted git repository.
guanmingchiu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/mahout.git
The following commit(s) were added to refs/heads/main by this push:
new d5c1e8188 MAHOUT-601: Remove duplicate self.num_qubits assignments
(#602)
d5c1e8188 is described below
commit d5c1e8188ab0d42c6a66430f2461769ee3a12166
Author: Shivam Mittal <[email protected]>
AuthorDate: Wed Nov 5 15:22:34 2025 +0530
MAHOUT-601: Remove duplicate self.num_qubits assignments (#602)
---
qumat/qumat.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/qumat/qumat.py b/qumat/qumat.py
index 06b8223b4..c63ec6e77 100644
--- a/qumat/qumat.py
+++ b/qumat/qumat.py
@@ -28,12 +28,10 @@ class QuMat:
self.circuit = None
self.num_qubits = None
self.parameters = {}
- self.num_qubits = None
def create_empty_circuit(self, num_qubits: int | None = None):
self.num_qubits = num_qubits
self.circuit = self.backend_module.create_empty_circuit(num_qubits)
- self.num_qubits = num_qubits
def _ensure_circuit_initialized(self):
"""validate that circuit has been created before operations."""