From the course: Quantum Computing Fundamentals
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Single-qubit gates on multi-qubit states
From the course: Quantum Computing Fundamentals
Single-qubit gates on multi-qubit states
- We've applied several different single cubic gates in isolation to one qubit at a time. But what if we want to apply one of those gates to a qubit that's part of a multi-qubit system? For example, let's say we have a quantum circuit with two qubits. They're both initialized in the zero basis state, and we want to apply an X gate to one of those qubits. That operation is easy to understand by looking at the circuit diagram, but let's consider how to accomplish that mathematically. The polyX operator is represented as a two-by-two matrix and the initial state vector for our pair of cubits is a four by one matrix. We can't simply multiply the X-Matrix, and state vector like we've been doing in previous videos because the inner dimensions don't match. These two matrices cannot be directly multiplied together. Conceptually, it also makes sense that regular X gate can't be used here because there's nothing to…
Contents
-
-
-
-
-
-
Hadamard gate4m 30s
-
(Locked)
Hadamard gate with Qiskit3m 3s
-
(Locked)
Measurement on an arbitrary basis6m
-
(Locked)
Phase shift gates4m 27s
-
(Locked)
Phase shift gates with Qiskit1m 55s
-
(Locked)
Parameterized rotation gates3m 23s
-
(Locked)
Parameterized rotation gates with Qiskit3m 1s
-
(Locked)
Single-qubit gates on multi-qubit states3m 57s
-
(Locked)
Challenge: Random numbers1m 45s
-
(Locked)
Solution: Random numbers2m 2s
-
-
-
-
-
-