Skip to content

Missing default parameter dim=2 in qalloc in PeakUsageGreedyQubitManager in QRE Cirq interop #3292

@fedimser

Description

@fedimser

In this file: source/qdk_package/qdk/qre/interop/_cirq.py
In _TypedQubitManager.qalloc and PeakUsageGreedyQubitManager.qalloc, dim should have deafult value 2: def qalloc(self, n: int, dim: int=2) -> list[cirq.Qid]
Without this when we try to use qalloc without explicit dim when decomposing a gate, and then pass it to resource estimator, we get failure: PeakUsageGreedyQubitManager.qalloc() missing 1 required positional argument: 'dim'

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions