Result and IQArray could not be found

Viewed 19

I am following this MS tutorial to add functionality to my Q#/C#host project.

However, I get two errors on my operations:

The type or namespace name 'Result' could not be found (are you missing a using directive or an assembly reference?) [host]csharp(CS0246)

The type or namespace name 'IQArray<>' could not be found (are you missing a using directive or an assembly reference?) [host]csharp(CS0246)

What am I missing or doing wrong?

enter image description here

1 Answers

What you are missing is using Microsoft.Quantum.Simulation.Core in your Program.cs. Give it a try. It works on my machine.

Related