TransWikia.com

State vector after applying CNOT

Quantum Computing Asked on December 26, 2020

enter image description here

In the circuit, the CNOT gate is applied in 11 state and it should transform into 10 state. But why is the probability of getting 01 state 100 percent?

One Answer

You are right, that $CNOT |11rangle = |10rangle $ in the usual setting. But the reason why you see the answer as $|01rangle$ instead is because Qiskit uses little endian convention.

See this documentation to clear thing up.

Correct answer by KAJ226 on December 26, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP