Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Referencing hidden operations in user code shouldn't work #103

Open
JakuJ opened this issue Jan 20, 2021 · 0 comments
Open

Referencing hidden operations in user code shouldn't work #103

JakuJ opened this issue Jan 20, 2021 · 0 comments
Labels
bug Something isn't working Optional An optional feature request

Comments

@JakuJ
Copy link
Owner

JakuJ commented Jan 20, 2021

Referencing hidden, custom operations in user-written code actually works and breaks compilation 🙂
This issue has low priority, you basically have to be a developer of this app to actually know you can break the compiler this way. Also, you get the "There has been an issue while processing your request." message in production anyway, so no big deal.

Code to reproduce:

namespace Test {
    open Microsoft.Quantum.Intrinsic;
    
    @EntryPoint()
    operation Main(): Unit {
        using ((q, qs) = (Qubit(), Qubit[3])) {
            TagAllocation("wtf", true);
            I(q);
            ResetAll(qs);
        }
    }
}
@JakuJ JakuJ added bug Something isn't working Optional An optional feature request labels Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Optional An optional feature request
Projects
None yet
Development

No branches or pull requests

1 participant