Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Fix links and formulas in gates API docs #1085

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions src/Simulation/TargetDefinitions/Decompositions/CYFromCNOT.qs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ namespace Microsoft.Quantum.Canon {
/// This operation can be simulated by the unitary matrix
/// $$
/// \begin{align}
/// 1 & 0 & 0 & 0 \\\\
/// 0 & 1 & 0 & 0 \\\\
/// 0 & 0 & 0 & -i \\\\
/// 0 & 0 & i & 0
/// \left(\begin{matrix}
/// 1 & 0 & 0 & 0 \\\\
/// 0 & 1 & 0 & 0 \\\\
/// 0 & 0 & 0 & -i \\\\
/// 0 & 0 & i & 0
/// \end{matrix}\right)
/// \end{align},
/// $$
/// where rows and columns are organized as in the quantum concepts guide.
Expand Down Expand Up @@ -43,4 +45,4 @@ namespace Microsoft.Quantum.Canon {
controlled distribute;
controlled adjoint self;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ namespace Microsoft.Quantum.Canon {
/// This operation can be simulated by the unitary matrix
/// $$
/// \begin{align}
/// 1 & 0 & 0 & 0 \\\\
/// 0 & 1 & 0 & 0 \\\\
/// 0 & 0 & 1 & 0 \\\\
/// 0 & 0 & 0 & -1
/// \left(\begin{matrix}
/// 1 & 0 & 0 & 0 \\\\
/// 0 & 1 & 0 & 0 \\\\
/// 0 & 0 & 1 & 0 \\\\
/// 0 & 0 & 0 & -1
/// \end{matrix}\right)
/// \end{align},
/// $$
/// where rows and columns are organized as in the quantum concepts guide.
Expand Down Expand Up @@ -54,4 +56,4 @@ namespace Microsoft.Quantum.Canon {
}
adjoint self;
}
}
}
4 changes: 2 additions & 2 deletions src/Simulation/TargetDefinitions/Decompositions/R1Frac.qs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ namespace Microsoft.Quantum.Intrinsic {
///
/// > [!WARNING]
/// > This operation uses the **opposite** sign convention from
/// > @"microsoft.quantum.intrinsic.r", and does not include the
/// > factor of $1/ 2$ included by @"microsoft.quantum.intrinsic.r1".
/// > <xref:Microsoft.Quantum.Intrinsic.R>, and does not include the
/// > factor of $1/ 2$ included by <xref:Microsoft.Quantum.Intrinsic.R1>.
///
/// # Input
/// ## numerator
Expand Down
2 changes: 1 addition & 1 deletion src/Simulation/TargetDefinitions/Decompositions/RFrac.qs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Microsoft.Quantum.Intrinsic {
///
/// > [!WARNING]
/// > This operation uses the **opposite** sign convention from
/// > @"microsoft.quantum.intrinsic.r".
/// > <xref:Microsoft.Quantum.Intrinsic.R>.
///
/// # Input
/// ## pauli
Expand Down