mindquantum.simulator.inner_product ==================================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindquantum/blob/master/docs/api_python/simulator/mindquantum.simulator.inner_product.rst :alt: 查看源文件 .. py:function:: mindquantum.simulator.inner_product(bra_simulator: Simulator, ket_simulator: Simulator) 计算给定模拟器中两种状态的内积。 参数: - **bra_simulator** (Simulator) - 提供bra态的模拟器。 - **ket_simulator** (Simulator) - 提供ket态的模拟器。 返回: numbers.Number,两个量子态的内积。