uladkaminski / quantum-computing-fundamentals

📚 Jupyter notebooks demonstrating fundamental quantum computing concepts with Qiskit. Topics range from basic quantum circuits and gates to advanced algorithms and running circuits on IBM quantum hardware.. The examples are crafted to help users understand and
0 stars 0 forks source link

Build the quantum circuit that puts three qubits in |W> state. #2

Open uladkaminski opened 2 months ago

uladkaminski commented 2 months ago

Context:

The challenge section requires implementation of the quantum circuit for three qubits to have them in |W> state.

7-quantum-entaglement.ipynb

The desired state vector for the |W⟩ state is:

$$ \begin{bmatrix} 0 \ \frac{1}{\sqrt{3}} \ \frac{1}{\sqrt{3}} \ 0 \ \frac{1}{\sqrt{3}} \ 0 \ 0 \ 0 \end{bmatrix} $$

This corresponds to the |W⟩ state defined as:

$$ |W⟩ = \frac{1}{\sqrt{3}}(|001⟩ + |010⟩ + |100⟩) $$

We need to ensure our quantum circuit properly prepares this state