We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49cb1b5 commit 3ea920dCopy full SHA for 3ea920d
qmb/hamiltonian.py
@@ -19,7 +19,7 @@ class Hamiltonian:
19
@classmethod
20
def _load_module(cls, device_type: str = "declaration", n_qubytes: int = 0, particle_cut: int = 0) -> object:
21
if device_type != "declaration":
22
- cls._load_module("declaration", n_qubytes, particle_cut) # Ensure the declaration module is loaded first
+ cls._load_module("declaration", n_qubytes, particle_cut) # Ensure the declaration module is loaded first
23
key = (device_type, n_qubytes, particle_cut)
24
is_prepare = key == ("declaration", 0, 0)
25
name = "qmb_hamiltonian" if is_prepare else f"qmb_hamiltonian_{n_qubytes}_{particle_cut}"
0 commit comments