In quantum mechanics, both global phase and local phase are properties of a particular quantum state. For the quantum state of a single qubit, we usually express it as ∣ ψ ⟩ = α ∣ 0 ⟩ + β ∣ 1 ⟩ |\psi\rangle = \alpha|0\rangle + \beta|1\rangle∣ψ⟩=α∣0⟩+β ∣1 ⟩ , whereα \alphaα和β \betaβ is complex and satisfies∣ α ∣ 2 + ∣ β ∣ 2 = 1 |\alpha|^2 + |\beta|^2 = 1∣α∣2+∣β∣2=1 to ensure the uniformity of the quantum state.
Global Phase: The global phase of a quantum state is relative to a specific reference state (usually ∣ 0 ⟩ |0\rangle∣0 ⟩ ) defined. If we put∣ ψ ⟩ |\psi\rangle∣ ψ ⟩ multiplied by a complex phase factorei ϕ e^{i\phi}ei ϕ , the obtained quantum stateei ϕ ∣ ψ ⟩ e^{i\phi}|\psi\rangleei ϕ ∣ψ⟩is and the original quantum state∣ ψ ⟩ |\psi\rangle∣ ψ ⟩ describes the same physical state, but the global phase is different. The global phase is not measurable in physical observations.
Local Phase: The local phase of a quantum state is relative to its own ground state (e.g. ∣ 0 ⟩ |0\rangle∣0 ⟩ and∣ 1 ⟩ |1\rangle∣1 ⟩ ) defined. For the quantum state∣ ψ ⟩ = α ∣ 0 ⟩ + β ∣ 1 ⟩ |\psi\rangle = \alpha|0\rangle + \beta|1\rangle∣ψ⟩=α∣0⟩+β ∣1 ⟩ , the local phase usually refers toα \alphaα和β \betaThe phase difference of β , that is , arg ( β ) − arg ( α ) \arg(\beta) - \arg(\alpha)ar g ( b )−arg ( α ) . _ The local phase can in some cases be measured by quantum interference experiments.
Calculated as follows:
Global phase: ϕ g = arg ( α ) \phi_g = \arg(\alpha)ϕg=ar g ( a )
Local phase: ϕ l = arg ( β ) − arg ( α ) \phi_l = \arg(\beta) - \arg(\alpha)ϕl=ar g ( b )−ar g ( a )
Here arg ( x ) \arg(x)ar g ( x ) is the pluralxxArgument function of x , returnsxxThe phase of x (in− π -π− p top pwithin the range of π ).
Note that these are theoretical definitions and calculation methods. In an actual quantum system, since the global phase is unmeasurable in physical observations, we usually only focus on the local phase. At the same time, the local phase is not directly measurable, but needs to be measured indirectly through techniques such as quantum interference.
θ = arg ( z ) = arctan ( y x ) \theta = \arg(z) = \arctan\left(\frac{y}{x}\right) i=arg(z)=arctan(xy)
This expression is to calculate two quantum states ∣ ψ 1 ⟩ |\psi_1\rangle∣ψ1⟩和∣ ψ 2 ⟩ |\psi_2\rangle∣ψ2⟩ The phase between. Molecule⟨ ψ 1 ∣ ψ 2 ⟩ \langle\psi_1|\psi_2\rangle⟨ p1∣ψ2⟩ is the inner product between two states, and the denominator∣ ⟨ ψ 1 ∣ ψ 2 ⟩ ∣ |\langle\psi_1|\psi_2\rangle|∣ ⟨ p1∣ψ2⟩ ∣ is the absolute value of the inner product.
内立⟨ ψ 1 ∣ ψ 2 ⟩ \langle\psi_1|\psi_2\rangle⟨ p1∣ψ2⟩ is a complex number whose absolute value gives the overlap (or similarity) of two states, and whose phase gives the phase difference of the two states. Thus, the result of this expression is a complex number modulo 1 whose phase is equal to the phase difference of the two states.
This expression is often used in quantum mechanics to calculate the phase relationship between two states. For example, if we have two states ∣ ψ 1 ⟩ = ∣ 0 ⟩ |\psi_1\rangle = |0\rangle∣ψ1⟩=∣0 ⟩和∣ ψ 2 ⟩ = ei ϕ ∣ 0 ⟩ |\psi_2\rangle = e^{i\phi}|0\rangle∣ψ2⟩=ei ϕ ∣0⟩, then⟨ψ 1 ∣ ψ 2 ⟩ ∣ ⟨ ψ 1 ∣ ψ 2 ⟩ ∣ = ei ϕ \frac{\langle\psi_1|\psi_2\rangle}{|\langle\psi_1|\psi_2\rangle |} = e^{i\phi}∣ ⟨ p1∣ψ2⟩∣⟨ p1∣ψ2⟩=ei ϕ gives∣ ψ 2 ⟩ |\psi_2\rangle∣ψ2⟩relative to∣ ψ 1 ⟩ |\psi_1\rangle∣ψ1⟩ phase.
In this particular example, the global phase has no clear meaning, because we don't have a fixed reference state to define the global phase. The global phase usually refers to a quantum state relative to a fixed reference state (such as ∣ 0 ⟩ |0\rangle∣0 ⟩ or∣ + ⟩ |+\rangle∣ + ⟩ ).
However, we can calculate the relative phase between two states, that is, ∣ ψ 1 ⟩ = 1 2 ( ∣ 0 ⟩ + ∣ 1 ⟩ ) |\psi_1\rangle = \frac{1}{\sqrt{2}} (|0\rangle + |1\rangle)∣ψ1⟩=21(∣0⟩+∣1 ⟩)和∣ ψ 2 ⟩ = 1 2 ( ∣ 0 ⟩ + ei ϕ ∣ 1 ⟩ ) |\psi_2\rangle = \frac{1}{\sqrt{2}}(|0\rangle + e^{ i\phi}|1\rangle)∣ψ2⟩=21(∣0⟩+ei ϕ ∣1⟩)phase difference between. This phase difference is obtained by comparing∣ ψ 1 ⟩ |\psi_1\rangle∣ψ1⟩和∣ ψ 2 ⟩ |\psi_2\rangle∣ψ2⟩中∣ 1 ⟩ |1\rangle∣1 ⟩ coefficient to get.
在∣ ψ 1 ⟩ |\psi_1\rangle∣ψ1⟩中,∣ 1 ⟩ |1\rangleThe coefficient of ∣1 ⟩ is1 2 \frac{1}{\sqrt{2}}21; while in ∣ ψ 2 ⟩ |\psi_2\rangle∣ψ2⟩中,∣ 1 ⟩ |1\rangleThe coefficient of ∣1 ⟩ isei ϕ 2 \frac{e^{i\phi}}{\sqrt{2}}2eiϕ. Therefore, the relative phase between two states is ei ϕ e^{i\phi}eThe phase of i ϕ , that is,ϕ \phiϕ .
So, relative to ∣ ψ 1 ⟩ |\psi_1\rangle∣ψ1⟩,∣ ψ 2 ⟩ |\psi_2\rangle∣ψ2The relative phase of ⟩ isϕ \phiϕ .
Suppose we have a qubit whose state is∣ ψ ⟩ = 1 2 ∣ 0 ⟩ + 1 2 ∣ 1 ⟩ |\psi\rangle = \frac{1}{\sqrt{2}}|0\rangle + \ frac{1}{\sqrt{2}}|1\rangle∣ψ⟩=21∣0⟩+21∣1⟩ . _ This qubit is in a superposition state, we measure it in the ground state { ∣ 0 ⟩ |0\rangle
∣0 ⟩ ,∣ 1 ⟩ |1\rattle∣1 ⟩ } state, get∣ 0 ⟩ |0\rangle∣0 ⟩ and∣ 1 ⟩ |1\rangleThe probability of ∣1 ⟩ is1 / 2 1/21/2。
Now, we impose a global phase on this qubit, resulting in a new state ∣ ψ ′ ⟩ = ei θ ∣ ψ ⟩ = ei θ ( 1 2 ∣ 0 ⟩ + 1 2 ∣ 1 ⟩ ) = 1 2 ei θ ∣ 0 ⟩ + 1 2 ei θ ∣ 1 ⟩ |\psi'\rangle = e^{i\theta}|\psi\rangle = e^{i\theta}(\frac{1}{\sqrt{2}}|0 \rangle + \frac{1}{\sqrt{2}}|1\rangle) = \frac{1}{\sqrt{2}}e^{i\theta}|0\rangle + \frac{1} {\sqrt{2}}e^{i\theta}|1\rangle∣ψ′⟩=eiθ∣ψ⟩=eiθ(21∣0⟩+21∣1⟩)=21eiθ∣0⟩+21eiθ∣1⟩。
You will see that although we change the phase of the quantum state, we measure the new quantum state ∣ ψ ′ ⟩ |\psi'\rangle∣ψ′ ⟩in the ground state { ∣ 0 ⟩ |0\rangle
∣0 ⟩ ,∣ 1 ⟩ |1\rattle∣1 ⟩ } state, get∣ 0 ⟩ |0\rangle∣0 ⟩ and∣ 1 ⟩ |1\rangleThe probability of ∣1 ⟩ is still1 / 2 1/21/2 . This means that the change of the global phase does not affect the physical observation results.
However, if we impose a local phase on this qubit, only changing∣ 1 ⟩ |1\rangle∣1 ⟩ phase, get a new state∣ ψ ′ ′ ⟩ = 1 2 ∣ 0 ⟩ + 1 2 ei ϕ ∣ 1 ⟩ |\psi''\rangle = \frac{1}{\sqrt{2}}| 0\rangle + \frac{1}{\sqrt{2}}e^{i\phi}|1\rangle∣ψ′′⟩=21∣0⟩+21ei ϕ ∣1⟩. Then, when we perform some specific measurements (such as measuring the probability distribution on other bases, or doing a quantum interference experiment), we can see the influence of this phase change.
Let's look at a concrete example. Suppose we have a qubit whose initial state is ∣ ψ ⟩ = 1 2 ∣ 0 ⟩ + 1 2 ∣ 1 ⟩ |\psi\rangle = \frac{1}{\sqrt{2}}|0\rangle + \frac{1}{\sqrt{2}}|1\rangle∣ψ⟩=21∣0⟩+21∣1⟩ . _ We can verify that this qubit is in the ground state∣ + ⟩ |+\rangle∣ + ⟩ and∣ − ⟩ |-\rangle∣ − ⟩ under the measurement probability is 50%.
Now, we impose a local phase on this qubit, changing only ∣ 1 ⟩ |1\rangle∣1 ⟩ phase, get a new state∣ ψ ′ ⟩ = 1 2 ∣ 0 ⟩ + 1 2 ei ϕ ∣ 1 ⟩ |\psi'\rangle = \frac{1}{\sqrt{2}}|0\ rangle + \frac{1}{\sqrt{2}}e^{i\phi}|1\rangle∣ψ′⟩=21∣0⟩+21eiϕ∣1⟩。
We can calculate that this new quantum state is in the ground state ∣ + ⟩ |+\rangle∣ + ⟩ and∣ − ⟩ |-\rangle∣ − ⟩ under the measurement probability. In order to simplify the calculation, we assumeϕ = π \phi = \piϕ=π , then the new quantum state becomes∣ ψ ′ ⟩ = 1 2 ∣ 0 ⟩ − 1 2 ∣ 1 ⟩ |\psi'\rangle = \frac{1}{\sqrt{2}}|0\rangle - \frac{1}{\sqrt{2}}|1\rangle∣ψ′⟩=21∣0⟩−21∣1⟩。
In this case, we can find that the new quantum state is in the ground state ∣ + ⟩ |+\rangle∣ + ⟩ The measurement probability becomes 0%, while in the ground state∣ − ⟩ |-\rangle∣ − ⟩ The measurement probability becomes 100%. This shows that the change of the local phase affects the measurement results of the quantum state in the new basis.
You can try to calculate ϕ \phi for other valuesϕ , it will be found that the change of the local phase will indeed affect the measurement results of the quantum state in the new basis.
Initial state ∣ ψ ⟩ = 1 2 ∣ 0 ⟩ + 1 2 ∣ 1 ⟩ |\psi\rangle = \frac{1}{\sqrt{2}}|0\rangle + \frac{1}{\sqrt{2 }}|1\rangle∣ψ⟩=21∣0⟩+21∣1 ⟩ is actually∣ + ⟩ |+\rangle∣ + ⟩ state. So in∣ + ⟩ |+\rangle∣ + ⟩ and∣ − ⟩ |-\rangle∣ − ⟩ is measured under the basis to get∣ + ⟩ |+\rangle∣ + ⟩ with probability 100%, and get∣ − ⟩ |-\rangle∣ − ⟩ has a probability of 0%.
When we pair ∣ 1 ⟩ |1\rangle∣1 ⟩ apply aπ \piAfter the local phase of π , the new state becomes∣ ψ ′ ⟩ = 1 2 ∣ 0 ⟩ − 1 2 ∣ 1 ⟩ |\psi'\rangle = \frac{1}{\sqrt{2}}|0\rangle - \frac{1}{\sqrt{2}}|1\rangle∣ψ′⟩=21∣0⟩−21∣1 ⟩ , which is actually∣ − ⟩ |-\rangle∣ − ⟩ state. So in∣ + ⟩ |+\rangle∣ + ⟩ and∣ − ⟩ |-\rangle∣ − ⟩ is measured under the basis to get∣ + ⟩ |+\rangle∣ + ⟩ has a probability of 0%, and one gets∣ − ⟩ |-\rangle∣ − ⟩ has a probability of 100%.
In this example, we have a two-qubit state ∣ ψ ⟩ = 1 2 ( ∣ 01 ⟩ − ∣ 10 ⟩ ) |\psi\rangle=\sqrt{\frac{1}{2}}(|01\ rangle-|10\rangle)∣ψ⟩=21(∣01⟩−∣10⟩ ) . We can see that this state is already a normalized state, because∣ 01 ⟩ |01\rangle∣01 ⟩ and∣ 10 ⟩ |10\rangleThe sum of the squares of the magnitudes of the probability amplitudes of ∣10 ⟩ is 1.
A global phase is a phase that acts on the entire quantum state. For example, we can add a global phase by multiplying by a complex number, resulting in a new quantum state ∣ ψ ′ ⟩ = ei θ ∣ ψ ⟩ = 1 2 ei θ ( ∣ 01 ⟩ − ∣ 10 ⟩ ) = 1 2 ( ei θ ∣ 01 ⟩ − ei θ ∣ 10 ⟩ ) |\psi'\rangle = e^{i\theta}|\psi\rangle = \sqrt{\frac{1}{2}}e^{i\theta}( |01\rangle-|10\rangle) = \sqrt{\frac{1}{2}}(e^{i\theta}|01\rangle - e^{i\theta}|10\rangle)∣ψ′⟩=eiθ∣ψ⟩=21eiθ(∣01⟩−∣10⟩)=21(eiθ∣01⟩−ei θ ∣10⟩). This is a global phase because it applies to the entire quantum state.
A local phase is a phase that only acts on some quantum states. For example, we can just ∣ 01 ⟩ |01\rangle∣01 ⟩ add a phase to get a new quantum state∣ ψ ′ ′ ⟩ = 1 2 ( ei ϕ ∣ 01 ⟩ − ∣ 10 ⟩ ) |\psi''\rangle = \sqrt{\frac{1}{2 }}(e^{i\phi}|01\rangle - |10\rangle)∣ψ′′⟩=21(eiϕ∣01⟩−∣10⟩ ) . This is a local phase because it only works on∣ 01 ⟩ |01\rangle∣01 ⟩ , but not on∣ 10 ⟩ |10\rangle∣10 ⟩ on.
Changes in the global phase do not affect physical observations, whereas changes in local phases may, for example in quantum interference.
Suppose an initial state of a single qubit ∣ ψ ⟩ = ∣ 0 ⟩ |\psi\rangle = |0\rangle∣ψ⟩=∣0 ⟩ , after the following operations, the measurement results are obtained∣1 ⟩ |1\rangle∣1⟩:
将∣ ψ ⟩ |\psi\rangle∣ ψ ⟩ Apply a Hadamard gate:H ∣ ψ ⟩ = 1 2 ( ∣ 0 ⟩ + ∣ 1 ⟩ ) H|\psi\rangle = \frac{1}{\sqrt{2}}(|0\rangle + | 1\rangle)H∣ψ⟩=21(∣0⟩+∣1 ⟩)。
将∣ ψ ⟩ |\psi\rangle∣ ψ ⟩ is used as a control bit, and a target bit∣ − ⟩ = 1 2 ( ∣ 0 ⟩ − ∣ 1 ⟩ ) |-\rangle = \frac{1}{\sqrt{2}}(|0\rangle - | 1\rangle)∣−⟩=21(∣0⟩−∣1 ⟩) as the target bit, perform CNOT operation:CNOT ∣ ψ ⟩ , ∣ − ⟩ 1 2 ( ∣ 0 ⟩ ∣ − ⟩ + ∣ 1 ⟩ ∣ + ⟩ ) CNOT_{|\psi\rangle,|-\rangle} \frac{1}{\sqrt{2}}(|0\rangle|-\rangle + |1\rangle|+\rangle)CNOT∣ψ⟩,∣−⟩21(∣0⟩∣−⟩+∣1 ⟩ ∣ + ⟩) .
Measure the first qubit. If the measurement result is∣ 0 ⟩ |0\rangle∣0 ⟩ , then the target bit measurement result is∣ − ⟩ |-\rangle∣ − ⟩ ; If the measurement result is∣ 1 ⟩ |1\rangle∣1 ⟩ , then the target bit measurement result is∣ + ⟩ |+\rangle∣ + ⟩。
CNOT ∣ ψ ⟩ , ∣ − ⟩ 1 2 ( ∣ 0 ⟩ ∣ − ⟩ + ∣ 1 ⟩ ∣ + ⟩ ) = 1 2 ( ∣ 0 ⟩ ∣ − ⟩ − ∣ 1 ⟩ ∣ + ⟩ ) CNOT_{| \psi\rangle,|-\rangle}\frac{1}{\sqrt{2}}(|0\rangle|-\rangle + |1\rangle|+\rangle)=\frac{1}{\sqrt {2}}(|0\rangle|-\rangle - |1\rangle|+\rangle)CNOT∣ψ⟩,∣−⟩21(∣0⟩∣−⟩+∣1⟩∣+⟩)=21(∣0⟩∣−⟩−∣1⟩∣+⟩)
In this example, phase inversion occurs in step 2 when the control bit ∣ ψ ⟩ |\psi\rangleThe state of ∣ ψ ⟩ is∣ 1 ⟩ |1\rangle∣1 ⟩ , the phase of the target bit will be reversed.