From 809df36cf2621384f4bf27e49c739721f6f1a5b3 Mon Sep 17 00:00:00 2001 From: yangguohao <70266361+yangguohao@users.noreply.github.com> Date: Fri, 5 Nov 2021 11:26:32 +0800 Subject: [PATCH] Update utils.py --- paddle_quantum/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle_quantum/utils.py b/paddle_quantum/utils.py index 0e24b0c..8386d41 100644 --- a/paddle_quantum/utils.py +++ b/paddle_quantum/utils.py @@ -1319,8 +1319,8 @@ def plot_n_qubit_state_in_bloch_sphere( if which_qubits is None: which_qubits = list(range(n_qubits)) else: - assert type(show_qubits)==list,'the type of which_qubits should be None or list' - assert len(show_qubits)==state_len,'展示的量子数量需要小于n_qubits' + assert type(which_qubits)==list,'the type of which_qubits should be None or list' + assert len(which_qubits)==state_len,'展示的量子数量需要小于n_qubits' for i in range(len(which_qubits)): assert 0