Register to reply

3-Qubit Quantum Circuit with 1 CNOT

by jumi
Tags: 3qubit, circuit, cnot, quantum
Share this thread:
Dec5-12, 08:34 PM
P: 28
Ok, I have this circuit, and I'm trying to devise a way to create an 8x8 matrix for any given combination of target qubit and controlled qubit.

(I is the identity matrix, and X is the CNOT operator)

I want it to also include the qubit that passes through untouched because I'm trying to write a program that takes a given state of 3 qubits and runs it through the above circuit.

As of now, for any combination of target and control qubit, I've generated the 8x8 matrices on paper, but I wondering if there's an easier way to generate each case?

If I had to, I suppose I could "brute force" code each individual case (i.e. 1 on 2, 1 on 3, 2 on 3 and their opposites), but it seems like I'm missing something quite easy that wouldn't require that...

Thanks in advance.
Phys.Org News Partner Physics news on
Physicists discuss quantum pigeonhole principle
First in-situ images of void collapse in explosives
The first supercomputer simulations of 'spin?orbit' forces between neutrons and protons in an atomic nucleus

Register to reply

Related Discussions
Many questions about qubit (quantum computing) Quantum Physics 5
About qubit, Quantum comp. Atomic, Solid State, Comp. Physics 3
Quantum optics, 2 qubit gates acting on 2 qubits - cannot be factorized? Quantum Physics 2
Rewriting quantum gates as CNOT+rotations Advanced Physics Homework 0
IBM 7-qubit NMR Quantum Computer Quantum Physics 3