Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
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
2 changes: 1 addition & 1 deletion Chemistry/src/Jupyter/BroombridgeMagic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class BroombridgeMagic : MagicSymbol
public BroombridgeMagic()
{
this.Name = $"%chemistry.broombridge";
this.Documentation = new Documentation() { Summary = "Loads and returns Broombridge electronic structure problem representation from a given .yaml file." };
this.Documentation = new Microsoft.Jupyter.Core.Documentation() { Summary = "Loads and returns Broombridge electronic structure problem representation from a given .yaml file." };
this.Kind = SymbolKind.Magic;
this.Execute = this.Run;
}
Expand Down
2 changes: 1 addition & 1 deletion Chemistry/src/Jupyter/ChemistryEncodeMagic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class ChemistryEncodeMagic : MagicSymbol
public ChemistryEncodeMagic()
{
this.Name = $"%chemistry.encode";
this.Documentation = new Documentation() { Summary = "Encodes a fermion Hamiltonian to a format consumable by Q#." };
this.Documentation = new Microsoft.Jupyter.Core.Documentation() { Summary = "Encodes a fermion Hamiltonian to a format consumable by Q#." };
this.Kind = SymbolKind.Magic;
this.Execute = this.Run;
}
Expand Down
7 changes: 5 additions & 2 deletions Chemistry/src/Jupyter/FermionHamiltonianMagic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class FermionHamiltonianLoadMagic : MagicSymbol
public FermionHamiltonianLoadMagic()
{
this.Name = $"%chemistry.fh.load";
this.Documentation = new Documentation() { Summary = "Loads the fermion Hamiltonian for an electronic structure problem. The problem is loaded from a file or passed as an argument." };
this.Documentation = new Microsoft.Jupyter.Core.Documentation() { Summary = "Loads the fermion Hamiltonian for an electronic structure problem. The problem is loaded from a file or passed as an argument." };
this.Kind = SymbolKind.Magic;
this.Execute = this.Run;
}
Expand Down Expand Up @@ -113,7 +113,10 @@ public class FermionHamiltonianAddTermsMagic : MagicSymbol
public FermionHamiltonianAddTermsMagic()
{
this.Name = $"%chemistry.fh.add_terms";
this.Documentation = new Documentation() { Summary = "Adds terms to a fermion Hamiltonian." };
this.Documentation = new Microsoft.Jupyter.Core.Documentation
{
Summary = "Adds terms to a fermion Hamiltonian."
};
this.Kind = SymbolKind.Magic;
this.Execute = this.Run;
}
Expand Down
2 changes: 1 addition & 1 deletion Chemistry/src/Jupyter/WavefunctionMagic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class WavefunctionMagic : MagicSymbol
public WavefunctionMagic()
{
this.Name = $"%chemistry.inputstate.load";
this.Documentation = new Documentation() { Summary = "Loads Broombridge electronic structure problem and returns selected input state." };
this.Documentation = new Microsoft.Jupyter.Core.Documentation() { Summary = "Loads Broombridge electronic structure problem and returns selected input state." };
this.Kind = SymbolKind.Magic;
this.Execute = this.Run;
}
Expand Down
5 changes: 4 additions & 1 deletion Chemistry/src/Runtime/Runtime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
<QsharpDocsGeneration>true</QsharpDocsGeneration>
<IncludeQsharpCorePackages>false</IncludeQsharpCorePackages>
<RunQDocGen>True</RunQDocGen>
<!-- List the name of the metapackage that users can
use to take a dependency on these Q# APIs, rather
than the subpackage directly. -->
<QsharpDocsPackageId>Microsoft.Quantum.Chemistry</QsharpDocsPackageId>
</PropertyGroup>

<PropertyGroup>
Expand Down Expand Up @@ -44,4 +48,3 @@
</ItemGroup>

</Project>

1 change: 1 addition & 0 deletions MachineLearning/src/MachineLearning.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyName>Microsoft.Quantum.MachineLearning</AssemblyName>
<QsharpDocsGeneration>true</QsharpDocsGeneration>
<QsharpDocsPackageId>Microsoft.Quantum.MachineLearning</QsharpDocsPackageId>
<!--
Include core packages using project references instead, since they get
built at the same time as this project.
Expand Down
12 changes: 6 additions & 6 deletions MachineLearning/src/Types.qs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.Quantum.MachineLearning {
/// Describes a controlled rotation in terms of its target and control
/// indices, rotation axis, and index into a model parameter vector.
///
/// # Input
/// # Named Items
/// ## TargetIndex
/// Index of the target qubit for this controlled rotation.
/// ## ControlIndices
Expand Down Expand Up @@ -50,7 +50,7 @@ namespace Microsoft.Quantum.MachineLearning {
/// parameterized and controlled rotations, an assignment of rotation
/// angles, and a bias between the two classes recognized by the model.
///
/// # Input
/// # Named Items
/// ## Structure
/// The sequence of controlled rotations used to classify inputs.
/// ## Parameters
Expand All @@ -70,7 +70,7 @@ namespace Microsoft.Quantum.MachineLearning {
/// Describes an operation that prepares a given input to a sequential
/// classifier.
///
/// # Input
/// # Named Items
/// ## NQubits
/// The number of qubits on which the encoded input is defined.
/// ## Prepare
Expand All @@ -84,7 +84,7 @@ namespace Microsoft.Quantum.MachineLearning {
/// # Summary
/// A sample, labeled with a class to which that sample belongs.
///
/// # Input
/// # Named Items
/// ## Features
/// A vector of features for the given sample.
/// ## Label
Expand Down Expand Up @@ -152,7 +152,7 @@ namespace Microsoft.Quantum.MachineLearning {
/// The results from having validated a classifier against a set of
/// samples.
///
/// # Input
/// # Named Items
/// ## NMisclassifications
/// The number of misclassifications observed during validation.
newtype ValidationResults = (
Expand All @@ -163,7 +163,7 @@ namespace Microsoft.Quantum.MachineLearning {
/// # Summary
/// A collection of options to be used in training quantum classifiers.
///
/// # Input
/// # Named Items
/// ## LearningRate
/// The learning rate by which gradients should be rescaled when updating
/// model parameters during training steps.
Expand Down
2 changes: 1 addition & 1 deletion Numerics/src/Numerics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<AssemblyName>Microsoft.Quantum.Numerics</AssemblyName>
<QsharpDocsGeneration>true</QsharpDocsGeneration>
<QsharpDocsPackageId>Microsoft.Quantum.Numerics</QsharpDocsPackageId>
<IncludeQsharpCorePackages>false</IncludeQsharpCorePackages>
</PropertyGroup>

Expand Down Expand Up @@ -45,4 +46,3 @@
</ItemGroup>

</Project>

11 changes: 8 additions & 3 deletions Standard/src/AmplitudeAmplification/Types.qs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,15 @@ namespace Microsoft.Quantum.AmplitudeAmplification {
/// # Summary
/// Phases for a sequence of partial reflections in amplitude amplification.
///
/// # Remarks
/// The first parameter is an array of phases for reflection about the
/// start state. The second parameter is an array of phases for reflection
/// # Named Items
/// ## AboutStart
/// An array of phases for reflection about the
/// start state.
/// ## AboutTarget
/// An array of phases for reflection
/// about the target state.
///
/// # Remarks
/// Both arrays must be of equal length. Note that in many cases, the first phase about the start state and last phase about the target state introduces a global phase shift and may be set to $0$.
newtype ReflectionPhases = (
AboutStart: Double[],
Expand Down
6 changes: 3 additions & 3 deletions Standard/src/Math/Complex.qs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ namespace Microsoft.Quantum.Math {
///
/// The polar representation of a complex number is $c=r e^{i t}$.
///
/// # Input
/// ## First Parameter
/// # Named Items
/// ## Magnitude
/// `Double` is absolute value $r \ge 0$.
/// ## Second Parameter
/// ## Argument
/// `Double` is the phase $t \in \mathbb R$.
newtype ComplexPolar = (Magnitude: Double, Argument: Double);

Expand Down
12 changes: 12 additions & 0 deletions Standard/src/Math/Types.qs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ namespace Microsoft.Quantum.Math {
/// Represents a rational number of the form `p/q`. Integer `p` is
/// the first element of the tuple and `q` is the second element
/// of the tuple.
///
/// # Named Items
/// ## Numerator
/// Numerator of the fraction.
/// ## Denominator
/// Denominator of the fraction/
newtype Fraction = (
Numerator: Int,
Denominator: Int
Expand All @@ -13,6 +19,12 @@ namespace Microsoft.Quantum.Math {
/// Represents a rational number of the form `p/q`. Integer `p` is
/// the first element of the tuple and `q` is the second element
/// of the tuple.
///
/// # Named Items
/// ## Numerator
/// Numerator of the fraction.
/// ## Denominator
/// Denominator of the fraction/
newtype BigFraction = (
Numerator: BigInt,
Denominator: BigInt
Expand Down
2 changes: 1 addition & 1 deletion Standard/src/Optimization/Univariate.qs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Microsoft.Quantum.Optimization {
/// # Summary
/// Represents the result of optimizing a univariate function.
///
/// # Input
/// # Named Items
/// ## Coordinate
/// Input at which an optimum was found.
/// ## Value
Expand Down