microsoft / QuantumLibraries

Q# libraries for the Quantum Development Kit
https://docs.microsoft.com/quantum
MIT License
543 stars 179 forks source link

Error using Bound() #685

Open Lan238692 opened 1 year ago

Lan238692 commented 1 year ago

I think I can't use the Bound function as mentioned in the guide below.

let bound = Bound([U, V]); bound(x);

The following error message is shown.

Couldn't match type (Qubit => Unit is Adj + Ctl) with type ('m => Unit). Expected: ('m => Unit)[] Actual: (Qubit => Unit is Adj + Ctl)[]