diff --git a/source/qdk_package/qdk/qre/interop/_cirq.py b/source/qdk_package/qdk/qre/interop/_cirq.py index 8665d8252a..c196aec7b1 100644 --- a/source/qdk_package/qdk/qre/interop/_cirq.py +++ b/source/qdk_package/qdk/qre/interop/_cirq.py @@ -621,7 +621,7 @@ def _allocate_qid(self, name: str, dim: int) -> cirq.Qid: """Allocates single qubit.""" return TypedQubit(super()._allocate_qid(name, dim), self.qubit_type) - def qalloc(self, n: int, dim: int) -> list[cirq.Qid]: + def qalloc(self, n: int, dim: int = 2) -> list[cirq.Qid]: """Allocate ``n`` qubits and update the usage counters.""" qs = super().qalloc(n, dim) self.current_in_use += len(qs) @@ -666,7 +666,7 @@ def __init__(self, prefix: str, *, size: int, maximize_reuse: bool): } def qalloc( - self, n: int, dim: int, qubit_type: QubitType = QubitType.COMPUTE + self, n: int, dim: int = 2, qubit_type: QubitType = QubitType.COMPUTE ) -> list[cirq.Qid]: """Allocate ``n`` qubits and update the usage counters.