{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "e5e44fb3",
   "metadata": {},
   "source": [
    "## Ejercicio 6.1: Puertas cuánticas"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "71cd75b7",
   "metadata": {},
   "source": [
    "$\\newcommand{\\ket}[1]{|{#1}\\rangle}\\newcommand{\\bra}[1]{\\langle{#1}|}$Considere el estado cuántico puro $\\ket{\\psi} = \\frac{1}{\\sqrt{2}}\\bigl[\\begin{smallmatrix}1\\\\1\\end{smallmatrix}\\bigr]$. Determine el resultado de las siguientes transformaciones.\n",
    "\n",
    "1. $\\ket{\\varphi} = \\text{X} \\ket{\\psi}$\n",
    "1. $\\ket{\\varphi} = \\text{Y} \\ket{\\psi}$\n",
    "1. $\\ket{\\varphi} = \\text{Z} \\ket{\\psi}$\n",
    "1. $\\ket{\\varphi} = \\text{H} \\ket{\\psi}$\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "e51496e6",
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "   \n",
    "# Definimos las puertas de Pauli y la puerta de Hadamard:\n",
    "\n",
    "# y las aplicamos al estado ket_psi:\n"
   ]
  }
 ],
 "metadata": {
  "celltoolbar": "Raw Cell Format",
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.11"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
