找不到结果和 IQArray
我正在关注这个 MS 教程,向我的 Q#/C#host 项目添加功能。
但是,我在操作时遇到两个错误:
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)
我遗漏了什么或做错了什么?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您缺少的是在
Program.cs
中使用 Microsoft.Quantum.Simulation.Core。尝试一下。它可以在我的机器上运行。What you are missing is
using Microsoft.Quantum.Simulation.Core
in yourProgram.cs
. Give it a try. It works on my machine.