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.
2 parents 0d6f12d + 3ea920d commit 73867d5Copy full SHA for 73867d5
qmb/hamiltonian.py
@@ -38,7 +38,7 @@ def _set_torch_cuda_arch_list(cls) -> None:
38
def _load_module(cls, device_type: str = "declaration", n_qubytes: int = 0, particle_cut: int = 0) -> object:
39
cls._set_torch_cuda_arch_list()
40
if device_type != "declaration":
41
- 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
42
key = (device_type, n_qubytes, particle_cut)
43
is_prepare = key == ("declaration", 0, 0)
44
name = "qmb_hamiltonian" if is_prepare else f"qmb_hamiltonian_{n_qubytes}_{particle_cut}"
0 commit comments