gpt4 book ai didi

visual-studio - 当前上下文中不存在“TeleportClassicalMessage”

转载 作者:行者123 更新时间:2023-12-02 02:58:18 25 4
gpt4 key购买 nike

我正在尝试运行 Q# Teleportation 示例。我从官方 Microsoft GitHub 存储库克隆,恢复了所有依赖项,我还安装了 Q# Development SDK。问题是当我第一次运行它时,它现在起作用了,我尝试再次运行它,但出现此错误。TeleportClassicalMessage' 在当前上下文中不存在。我最后一次运行它,即使出现错误也能正常工作。顺便说一句,我已经将 TeleportationSample 设置为我的启动项目。这种行为有什么原因吗?。我是 Q# 的新手

enter image description here

即使有红色的 Squiggly,应用程序也会在另一次尝试后运行。 enter image description here

最佳答案

我通过删除 bin 和 obj 目录然后再​​次运行来解决这个问题。

我的经验:Quantum Program The name 'BellTest' does not exist in the current context

关于visual-studio - 当前上下文中不存在“TeleportClassicalMessage”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47981727/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com