This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Comparison operations #593
Labels
Area-API
Issue concerns the API design of a library, such as style guide or design principles adherence.
Kind-Enhancement
New feature or request
Pkg-Numerics
Issue relates to the Microsoft.Quantum.Numerics package.
Pkg-Standard
Issue relates to the Microsoft.Quantum.Standard package.
tracking
This label will trigger gh-sync to create or update a mirror internal ADO issue.
Comparison operations
Conceptual overview
Provides operations for
<
,<=
,=>
,>
forin
Standard
:LittleEndian
registers withX
on targetLittleEndian
registers with arbitrary action on targetLittleEndian
register and a constant withX
on targetLittleEndian
register and a constant with arbitrary action on targetin
Numerics
:FixedPoint
registers withX
on targetFixedPoint
registers with arbitrary action on targetFixedPoint
register and a constant (withX
on target)Current status
Comparison operations are not readily available for all 4 cases and no specializations with constants exists. The constant variants are optimized and do not lead to additional qubit overhead.
User feedback
Useful for resource estimation.
Proposal
We describe all operations for the case
LessThan
(<
), but analogously operations are introduced forLessThanOrEqual
(<=
),GreaterThanOrEqual
(>=
), andGreaterThan
(>
)New and modified functions, operations, and UDTs
Relationship to other proposals
(see comments below)
The text was updated successfully, but these errors were encountered: