Documentation

QuantumInfo.Finite.Qubit.Basic

Quantum theory and operations specific to qubits.

@[reducible, inline]
abbrev Qubit :
Equations
Instances For
    theorem Matrix.conjTranspose_fin_two {α : Type u_1} [NonUnitalNonAssocSemiring α] [StarRing α] (a b c d : α) :
    !![a, b; c, d].conjTranspose = !![star a, star c; star b, star d]

    The Pauli Z gate on a qubit.

    Equations
    Instances For

      The Pauli X gate on a qubit.

      Equations
      Instances For

        The Pauli Y gate on a qubit.

        Equations
        Instances For
          noncomputable def Qubit.H :

          The H gate, a Hadamard gate, on a qubit.

          Equations
          Instances For

            The S gate, or Rz(π/2) rotation on a qubit.

            Equations
            Instances For
              noncomputable def Qubit.T :

              The T gate, or Rz(π/4) rotation on a qubit.

              Equations
              Instances For
                def Qubit.controllize {T : Type u_1} [Fintype T] [DecidableEq T] (g : 𝐔[T]) :

                Given a unitary U on some Hilbert space T, we have the controllized version that acts on Fin 2 ⊗ T where U is conditionally applied if the first qubit is 1.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For