Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 843ada6

Browse files
committed
making sure default arguments are preserved
1 parent 25f309d commit 843ada6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bloqade/pyqrack/target.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ class PyQrack:
3030
pyqrack_options: PyQrackOptions = field(default_factory=_default_pyqrack_args)
3131
"""Options to pass to the QrackSimulator object, node `qubitCount` will be overwritten."""
3232

33+
def __post_init__(self):
34+
self.pyqrack_options = PyQrackOptions(
35+
{**_default_pyqrack_args(), **self.pyqrack_options}
36+
)
37+
3338
def _get_interp(self, mt: ir.Method[Params, RetType]):
3439
if self.dynamic_qubits:
40+
3541
options = self.pyqrack_options.copy()
3642
options["qubitCount"] = 0
3743
return PyQrackInterpreter(mt.dialects, memory=DynamicMemory(options))

0 commit comments

Comments
 (0)