From 9dab4b39a49d3918dbccf470029389444746b8a4 Mon Sep 17 00:00:00 2001 From: Vasu Jain <47535291+jainvasu631@users.noreply.github.com> Date: Wed, 17 Jun 2020 17:39:07 +0530 Subject: [PATCH] Fixed Documentation Errors in S and T gate The S gate which applies a PI/2 phase shift and T gate which applies a PI/4 phase shift gate were wrongly documented to term them as PI/4 and PI/8 gate respectively. The PI/8 gate is a valid and used name for T gate but it is quite confusing for beginners since the matrix only adds in a phase of PI/4 if qubit is 1. --- src/Simulation/QsharpCore/Intrinsic.qs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Simulation/QsharpCore/Intrinsic.qs b/src/Simulation/QsharpCore/Intrinsic.qs index 28f0353dd86..bc194ca0271 100644 --- a/src/Simulation/QsharpCore/Intrinsic.qs +++ b/src/Simulation/QsharpCore/Intrinsic.qs @@ -209,7 +209,7 @@ namespace Microsoft.Quantum.Intrinsic { /// # Summary - /// Applies the π/4 phase gate to a single qubit. + /// Applies the π/2 phase shift gate to a single qubit. /// /// \begin{align} /// S \mathrel{:=} @@ -229,7 +229,7 @@ namespace Microsoft.Quantum.Intrinsic { /// # Summary - /// Applies the π/8 gate to a single qubit. + /// Applies the π/4 phase shift gate to a single qubit. /// /// \begin{align} /// T \mathrel{:=}