Skip to main content

Q# Language

Feedback on language syntax, constructs, types, ...

(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. Q# Arthimatic syntax error

    Below code throws an error for arthematic syntax finaloutput += 1 and no error if i rewrite this to finaloutput = finaloutput + 1. Is this a bug or is it on purpose?

    mutable finaloutput = 0;
    using(Qubits = Qubit[1])
    {
    Set(Initial,Qubits[0]);
    X(Qubits[0]);
    let res = M(Qubits[0]);
    if(res == One)
    {
    set finaloutput += 1;
    }

    Set(Zero,Qubits[0]);

    }

    1 vote
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  2. The Function or Operation with the return value requires the return statement after fail statement

    Q# Compiler reports "Error QS0001 missing return statement" for the following function.

    ```
    function FailExample() : Int
    {
    fail("All false.");
    }
    ```

    However, the compiler reports "warning CS0162: Unreachable code detected" if I add the return statement,

    ```
    function FailExample() : Int
    {
    fail("All false.");
    return -1;
    }
    ```

    This is the same for operation.

    I expect either should be compiled without error/warning. I prefer to one without return statement.

    1 vote
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  3. exemplo de código em Q#. Cadê!!!??

    Colocar exemplos simples, mas completo, de um programa em Q#.

    1 vote
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    2 comments  ·  Flag idea as inappropriate…  ·  Admin →
  4. Support tuple deconstruction at mutable (re-)binding

    Currently the compiler supports tuple deconstruction at immutable binding using `let` keyword. But it doesn't do so for mutable binding (using `mutable`) or rebinding (using `set`).

    It'd be really useful if tuples could be deconstructed for mutable binding and rebinding too. It would also make tuple binding consistent ;-)

    1 vote
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  5. Allow for #region blocks

    Allow to define #region #endregion blocks , just as currently allowed in C#

    2 votes
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    under review  ·  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  6. Reorder function arguments in partial application

    For example with a syntax like (f(_2, a, _1))(b, c) === f(c, a, b).

    1 vote
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    under review  ·  2 comments  ·  Flag idea as inappropriate…  ·  Admin →
  7. Allow single statements to function as blocks

    For example "if (condition) statement;" instead of "if (condition) {statement;}"

    1 vote
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    under review  ·  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  8. 1 vote
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  9. What`s the website?

    There are many English words,I couldn`t understand it.
    I`m a Chinese.

    1 vote
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    under review  ·  0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  10. There are no multiple line comments?

    Because the language is new, it would be good if everything was well organized...

    7 votes
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    under review  ·  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  11. Working On error correction

    I want to perform error correction on any quantum circuits (if the circuits are written in a .qasm/.qc or any other file ) then how can we read the whole circuit form that file and load then in data structure in QDK to apply error correcting codes.
    Apart from that if I want to apply different error correcting codes rather than BitFlipCode or 5-qubit Perfect code then can I manipulate the QECC class defined in that?

    1 vote
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  12. I would like to propose an entaglement measurement to quantum circuits based on states decomposition

    Since circuits generate entanglement, it can be possible to evaluate the entanglement measurement in each step (from 0 to 1).

    2 votes
    Sign in
    Signed in as (Sign out)

    We’ll send you updates on this idea

    under review  ·  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Feedback and Knowledge Base