microsoft / qsharp

Azure Quantum Development Kit, including the Q# programming language, resource estimator, and Quantum Katas
https://microsoft.github.io/qsharp/
MIT License
464 stars 93 forks source link

RCA panics when comparing arrays #1925

Closed cesarzc closed 2 weeks ago

cesarzc commented 2 months ago

Describe the bug

RCA panics when comparing arrays.

operation Main() : Unit {
    use qs = Qubit[2];
    MResetEachZ(qs) == [Zero, Zero];
}

To Reproduce

Playground repro.

Thanks @swernli for finding the bug and providing a repro.

orpuente-MS commented 3 weeks ago

What is the expected behavior here?