A quantum gate
Let's look at how to simulate the action of gates on density operators using code!
The code below intends to calculate the effect of a quantum gate U
on a quantum state with density operator rho
. Complete the missing lines to compute the resulting density operator after applying U
on rho
.
To interact with codercises, please switch to a larger screen size.
Learning Objectives: