Answers:
查看量子位的方法有很多,状态向量形式主义只是其中之一。在一般的线性代数意义上,度量是投影到基础上的。在这里,我将从Pauli可观察的角度提供一个示例,这是QC的常用电路模型。
首先,感兴趣的是提供状态向量的基础-每个测量运算符都带有一组本征态,以及您要查看的任何测量值(例如等)。确定最适合写状态向量的基础。回答问题的最简单方法是,您是否知道哪个基础对您感兴趣,更重要的是,该基础是否与您刚刚进行的测量相减。
因此,为简单起见,假设您以两个位为基础,以Z为基础,以处于任意状态的两个耦合的qubit开始:
您可能做的最简单的测量就是,即第一个量子位上的运算符,然后是,第二个量子位上的运算符。测量做什么?它将状态投影到本征状态之一。您可以将其视为消除了所有可能的答案,这些答案与我们刚刚测得的答案不一致。例如,假设我们测量并获得结果,那么我们将得到的结果状态将是:
请注意,前面的系数仅用于重新规格化。因此,我们测量概率为。请注意,这不同于我们在初始状态下的概率| 一个| 2+| c| 2。
但是,假设您进行的下一次测量与上一次测量不同步。这比较棘手,因为您必须根据状态向量实现基础的更改才能理解概率。但是,通过Pauli测量,由于本征基以一种很好的方式关联,所以它往往很容易,即:
A good way to check your understanding: What is the probability of measuring after the measurement above? What is the probability if we have not made the measurement? Then a more complicated question is to look at product operators that act on both qubits at once, for instance, how does a measurement of affect the initial state? Here measures the product of the two operators.
Suppose that, prior to measurement, your -qubit system is in some state , where is the Hilbert space of a single qubit. Write
This is broadly analogous to the idea of conditional probability distributions: you might think of as the state of the system conditioned on the first qubit being , and as the state of the system conditioned on the first qubit being (except of course that the story is a bit more complicated, on account of the fact that the first qubit is not "secretly" in either the state or ).
The above is not strongly dependent on measuring the first qubit: we can define and in terms of fixing any particular bit in the bit string to either or , summing over only those components which are consistent with either the choice or , and proceeding as above.
The above is also not strongly dependent on measuring in the standard basis, as Emily indicates. If we wish to consider measuring the first qubit in the basis , where and , we define
Less formally-stated than the other answers, but for beginners I like the intuitive method outlined by Prof. Vazirani in this video.
Suppose you have a general two-qbit state:
Now suppose you measure the most-significant (leftmost) qbit in the computational basis (as in, collapse it to either or ). There are two questions we might ask:
For the first question, the intuitive answer is this: take the sum of squares of all amplitudes associated with the value for which you want to find the probability of collapse. So, if you want to know the probability of the measured qbit collapsing to , you'd look at the amplitudes associated with cases and , because those are the cases where the measured qbit is . Thus:
Similarly, for you look at the amplitudes associated with cases and , so:
As for the state of the 2-qbit system after measurement, what you do is cross out all the components of the superposition which are inconsistent with the answer you got. So, if you measured , then the state after measurement is:
However, this state is not normalized - the sum of squares does not add up to 1, and so you have to normalize it:
Similarly, if you measured then you'd get:
Normalized:
And that's how you calculate the action of measuring one qbit in a multi-qbit state, in the simplest case!