Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Support allocating a tuple of one qubit #271

@tcNickolas

Description

@tcNickolas

Describe the bug

Trying to allocate a tuple of a single qubit variable (a single qubit or one array of qubits) fails with error QS6305 "The shape of the symbol tuple is not compatible with the assigned expression of type Qubit."

It seems fitting to support allocating tuples of single variables, since it would be consistent with Q#' overall approach to tuples.

To Reproduce

using ((q) = (Qubit())) { }

Expected behavior

Successful allocation of the variable.

System information

QDK 0.10.1911.1607

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions