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. Float data type and IntelliSense on qs code

    In the medical imaging domain; my input data is an array of complex numbers. The real and imaginary part of the complex number are float data types.
    Unfortunately, using Double (what Q# offers) alters my output and that is not ok. A great suggestion would be to have the Float datatype available.

    Another functionality that would be really useful is IntelliSense.
    Right now, I first write code, build the project and fix issues.
    It would be really great if IntelliSense could analyze Q# code in real time. If this functionality already exists, I'd be really curious how to activate it.

    1 vote
    Sign in Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  2. Double literal produces syntax error

    The following code produces syntax error on (Win 8.1 machine) dotnet version 2.2.104
    ``` // Operations.qs
    namespace DoubleParsingIssue
    {
    open Microsoft.Quantum.Canon;
    open Microsoft.Quantum.Primitive;

    operation HelloQ () : Unit {
    body(...) {
    let A = 2.0; // error QS3101: Syntax error in expression.
    }
    }
    }
    ```

    1 vote
    Sign in Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  3. Double literal parsing error

    The decimal point is only used to recognize it as a double and then ignored. For example, 1.0 becomes 10.0 and 3.1415 becomes 31,415.0.
    This is an embarrassment, fix it immediately.

    1 vote
    Sign in Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

    1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  4. 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 Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

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

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

    1 vote
    Sign in Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

    3 comments  ·  Flag idea as inappropriate…  ·  Admin →
  6. Allow for #region blocks

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

    2 votes
    Sign in Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

    under review  ·  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  7. 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 Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

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

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

    1 vote
    Sign in Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

    under review  ·  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  9. 1 vote
    Sign in Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

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

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

    1 vote
    Sign in Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

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

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

    7 votes
    Sign in Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

    under review  ·  1 comment  ·  Flag idea as inappropriate…  ·  Admin →
  12. 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 Sign in with Microsoft - Quantum Computing
    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Flag idea as inappropriate…  ·  Admin →
  13. 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 Sign in with Microsoft - Quantum Computing
    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