The matrix form of the controlled-NOT (CNOT) gate is:

CNOT = [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 0, 1], [0, 0, 1, 0]]

To show the simulation circuit with the CNOT gate, we can represent the initial state of |0i as:

|0i = [1, 0]

The circuit with the CNOT gate can be represented as:

|0i --[CNOT]-- |0i

Applying the CNOT gate to the initial state, we get:

CNOT * |0i = [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 0, 1], [0, 0, 1, 0]] * [1, 0]

Simplifying the matrix multiplication, we get the output state as:

[1, 0, 0, 0]

Therefore, the output state after applying the CNOT gate to the initial state of |0i is still |0i

What is the matrix form of controlled-NOT gate If the initial state are all0i show the simulation circuit with controlled-NOT gate what is the outputstate

原文地址: https://www.cveoy.top/t/topic/iBFd 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录