fwcd / fwcd/swift-quantum

Investigate replacing variadic generics boolean functions with more dynamism

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Swift
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Variadic generics unfortunately are not ergonomic enough for our use case and might potentially be too limited too. For example, the lack of same-element requirements (see [this forum post](https://forums.swift.org/t/variadic-types-same-element-requirements-are-not-yet-supported/67285)) requires us to use [the `BoolConvertible` workaround](https://github.com/fwcd/swift-quantum/blob/c339acc965986cd58d8ca91d3081dc7a8473e109/Sources/Quantum/Program/QuantumOracle%2BFunction.swift#L2-L20) currently.

We might therefore want to have those functions simply operate on e.g. `ClassicalState`. This would likely require specifying the arities explicitly.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.