1.3K Star 2.1K Fork 3.6K

GVPMindSpore / mindquantum

 / 详情

[CT][MS][mindquantum]Simulator,get_qs(ket=False),没有类型校验

DONE
Bug-Report
创建于  
2021-12-09 17:25
name about labels
Bug Report Use this template for reporting a bug kind/bug

Environment

  • Hardware Environment(Ascend/GPU/CPU):

Uncomment only one /device <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/device ascend
/device gpu
/device cpu

  • Software Environment:
    -- MindSpore version (source or binary):
    -- Python version (e.g., Python 3.7.5):
    -- OS platform and distribution (e.g., Linux Ubuntu 16.04):
    -- GCC/Compiler version (if compiled from source):

Related testcase

Steps to reproduce the issue

from mindquantum import qft, Simulator
sim = Simulator('projectq', 2)
sim.apply_circuit(qft(range(2)))
print(sim.get_qs(ket=1))

Describe the current behavior

Simulator,get_qs(ket=False),没有类型校验

Describe the expected behavior

有类型校验

Related log / screenshot

memory overflow during save or load checkpoint file.
[INFO] PARALLEL(41887,7f2d61a8c740,python):2021-12-09-17:38:39.836.534 [mindspore/ccsrc/frontend/parallel/costmodel_context.cc:30] GetInstance] Create costmodel_context
[INFO] CORE(41887,7f2d61a8c740,python):2021-12-09-17:38:39.844.599 [mindspore/core/utils/ms_context.h:233] set_param<std::__cxx11::basic_string >] ms set context device target:CPU
[INFO] CORE(41887,7f2d61a8c740,python):2021-12-09-17:38:39.929.307 [mindspore/core/utils/ms_context.cc:119] set_backend_policy] ms set context backend policy:ms
1/2¦00⟩
1/2¦01⟩
1/2¦10⟩
1/2¦11⟩
[INFO] PIPELINE(41887,7f2d61a8c740,python):2021-12-09-17:38:40.632.312 [mindspore/ccsrc/pipeline/jit/init.cc:323] operator()] Start releasing dataset handles...
[INFO] PIPELINE(41887,7f2d61a8c740,python):2021-12-09-17:38

Special notes for this issue

评论 (0)

mu_rong_meng 创建了Bug-Report
mu_rong_meng 添加了
 
kind/bug
标签
mu_rong_meng 添加了device/cpu(已删除)标签
donghufeng 任务状态TODO 修改为VALIDATION
donghufeng 添加协作者donghufeng
donghufeng 负责人donghufeng 修改为mu_rong_meng
donghufeng 取消协作者donghufeng
donghufeng 里程碑B-MBA 修改为B-ComponentTest
mu_rong_meng 任务状态VALIDATION 修改为DONE
mu_rong_meng 移除了device/cpu(已删除)标签
展开全部操作日志

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(1)
Python
1
https://gitee.com/mindspore/mindquantum.git
git@gitee.com:mindspore/mindquantum.git
mindspore
mindquantum
mindquantum

搜索帮助

344bd9b3 5694891 D2dac590 5694891