Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否将教程中的示例打包成 jupyter notebook的文件? #22

Open
TheCutestCat opened this issue Mar 18, 2023 · 1 comment
Open

Comments

@TheCutestCat
Copy link

您好,我在看教程的时候发现,示例代码无法直接打开,还需要自己手动去复制粘贴,比较麻烦。
请问能否:

  1. 将文档整理成jupyter notebook的格式
  2. 如果有计算资源的话,能否提供一个在本源量子的云端计算机运行的内容,类似于pytorch教程中的colab
    非常感谢您的帮助!
@kevzos
Copy link
Contributor

kevzos commented Mar 24, 2023

@liuyalinrich ,谢谢你的反馈。
1.我们会在接下来一段时间为示例增加notebook格式。
2.如果使用使用本源量子的云端计算机资源,可将https://vqnet20-tutorial.readthedocs.io/en/main/rst/qml_demo.html 中QVC示例代码的 QuantumLayer接口的第三个参数“cpu”改为在本源量子云端申请的token,例如“602A122457854199ABBD739183BBB5E1”:

class Model(Module):
    def __init__(self):
        super(Model, self).__init__()
        #self.qvc = QuantumLayer(qvc_circuits,24,"cpu",4)
        self.qvc = QuantumLayer(qvc_circuits,24,“602A122457854199ABBD739183BBB5E1”,4)
    def forward(self, x):
        return self.qvc(x)

申请云端资源请参考:https://pyqpanda-toturial.readthedocs.io/zh/latest/QCloudQVM.html#id2以及https://qcloud.originqc.com.cn/zh

phaldon pushed a commit that referenced this issue Nov 12, 2024
[feat] add tensot parallel api, add zero 1 api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants