From 987a5e97d8cced82126d35fb23c96046af933db9 Mon Sep 17 00:00:00 2001 From: Zhou Peng Date: Mon, 14 Aug 2023 09:09:32 +0800 Subject: [PATCH 1/3] update readme --- README_ZH.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README_ZH.md b/README_ZH.md index 8615d74..eb42750 100755 --- a/README_ZH.md +++ b/README_ZH.md @@ -84,4 +84,8 @@ The result of bell_state is: - 对于能够执行QCIS指令的后端,结果的格式由PyQCISim进行定义。详情请参考`quingo.if_backend.non_arch_backend.pyqcisim_quantumsim.PyQCISim_quantumsim::execute()`中的文档描述。 ## 青果示例程序 -目前青果运行时系统中已经包含了`Bell_state`、`GHZ`、`VQE`等示例程序,详情可见[此处](https://gitee.com/quingo/quingo-runtime/tree/master/src/examples)。 \ No newline at end of file +目前青果运行时系统中已经包含了`Bell_state`、`GHZ`、`VQE`等示例程序,详情可见[此处](https://gitee.com/quingo/quingo-runtime/tree/master/src/examples)。 + +## CI构建 + +支持Pull Request的CI自动构建,目前CI只进行pytest测试。 \ No newline at end of file -- Gitee From ac9fd6e98836c7038bc6f5ca8d00d23e0b0df6c2 Mon Sep 17 00:00:00 2001 From: Zhou Peng Date: Mon, 14 Aug 2023 09:59:02 +0800 Subject: [PATCH 2/3] make a failed test --- src/tests/test_dt_roundtrip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/test_dt_roundtrip.py b/src/tests/test_dt_roundtrip.py index 7467642..fa89c27 100755 --- a/src/tests/test_dt_roundtrip.py +++ b/src/tests/test_dt_roundtrip.py @@ -23,7 +23,7 @@ def check_equal(val1, val2): - True on equal, otherwise False. """ - if type(val1) is not type(val2): + if type(val1) is type(val2): return False if isinstance(val1, float) or isinstance(val2, float): -- Gitee From e2ebe1ae4ce1751fd41011104b7dc159479c4c68 Mon Sep 17 00:00:00 2001 From: Zhou Peng Date: Mon, 14 Aug 2023 10:11:50 +0800 Subject: [PATCH 3/3] make the test pass --- src/tests/test_dt_roundtrip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/test_dt_roundtrip.py b/src/tests/test_dt_roundtrip.py index fa89c27..7467642 100755 --- a/src/tests/test_dt_roundtrip.py +++ b/src/tests/test_dt_roundtrip.py @@ -23,7 +23,7 @@ def check_equal(val1, val2): - True on equal, otherwise False. """ - if type(val1) is type(val2): + if type(val1) is not type(val2): return False if isinstance(val1, float) or isinstance(val2, float): -- Gitee