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

为什么你们的CloudMachine在使用的时候一直报错 #236

Open
bwatchor opened this issue Dec 26, 2023 · 0 comments
Open

为什么你们的CloudMachine在使用的时候一直报错 #236

bwatchor opened this issue Dec 26, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@bwatchor
Copy link

QPanda

基本信息

  • QPanda 版本
  • 操作系统:Linux

Bug是什么?

我在按照你们的测试用例使用CloudMachine的时候一直报错

复现Bug的步骤?

auto machine = QCloudMachine();
machine.init("api填写自己的“, true);

machine.set_qcloud_api("https://qcloud.originqc.com");

auto qlist = machine.allocateQubits(4);
auto clist = machine.allocateCBits(4);
auto measure_prog = QProg();
measure_prog << HadamardQCircuit(qlist)
    << CZ(qlist[2], qlist[3])
    << Measure(qlist[0], clist[0]);

auto pmeasure_prog = QProg();
pmeasure_prog << HadamardQCircuit(qlist)
    << CZ(qlist[1], qlist[3])
    << RX(qlist[2], PI / 4)
    << RX(qlist[1], PI / 4);

auto result0 = machine.full_amplitude_measure(measure_prog, 100);

建议的解决方案

pyQPanda

基本信息

  • pyQPanda 版本
  • Python 版本
  • 操作系统

Bug是什么?

QCloudMachine.cpp 210 QPanda::QCloudMachine::full_amplitude_measure curl_easy_perform() failed: Couldn't resolve host name
unknown file: error: C++ exception with description "curl_easy_perform() failed: Couldn't resolve host name run error" thrown in the test body.

复现Bug的步骤?

建议的解决方案

@bwatchor bwatchor added the bug Something isn't working label Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant