Skip to main content

New answers tagged

2 votes

Why is the matrix representation of CNOT gate valid

As correctly pointed out in the comments, the matrix doesn't operate in the way you described. CNOT is a quantum conditional, similar to a classical conditional like ...
Sibasish Mishra's user avatar
0 votes

How to understand the matrix representation of the Toffoli produced by qiskit?

This is because Qiskit uses tensor ordering convention different from what is used in most quantum computing textbooks. According to a recent preprint from Qiskit team: When interpreting circuits, a ...
Egretta.Thula's user avatar
5 votes

Constructing a block unitary from non-unitary matrices

For Rep. 1 you can use a Linear Combination of Unitaries (LCU) for block encoding each of your projections, and then use a control statement according to the the $s_i$ variable. If we designate the ...
tomergf's user avatar
  • 121

Top 50 recent answers are included