Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

ControlledOnInt return should use LittleEndian argument #243

@crazy4pi314

Description

@crazy4pi314

Describe the bug
The return of ControlledOnInt is an operation that takes a tuple (Qubit[], 'T). I think it should return an operation that takes a tuple of (LittleEndian, 'T) so that there is a clear interpretation of the integer that the register is supposed to represent.

To Reproduce
Not really any steps, just an inconsistent design.

Expected behavior
As noted above, to be able to control on an integer there has to be way to interpret a register as an integer. This can be encoded in the type signature by having the operation take a type LittleEndian.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-APIIssue concerns the API design of a library, such as style guide or design principles adherence.Kind-EnhancementNew feature or requestPkg-StandardIssue relates to the Microsoft.Quantum.Standard package.Status-ChildIssueThis issue is part of an in-progress proposal or other parent issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions