From c021b76cff8dc3a1b5146e09ff58d5f001fe85b0 Mon Sep 17 00:00:00 2001 From: Christopher Granade Date: Thu, 27 Aug 2020 20:09:38 -0700 Subject: [PATCH 1/3] Update references to Documentation. --- Chemistry/src/Jupyter/BroombridgeMagic.cs | 2 +- Chemistry/src/Jupyter/ChemistryEncodeMagic.cs | 2 +- Chemistry/src/Jupyter/FermionHamiltonianMagic.cs | 7 +++++-- Chemistry/src/Jupyter/WavefunctionMagic.cs | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Chemistry/src/Jupyter/BroombridgeMagic.cs b/Chemistry/src/Jupyter/BroombridgeMagic.cs index abf5f8f5340..d3bbcc3bf9d 100644 --- a/Chemistry/src/Jupyter/BroombridgeMagic.cs +++ b/Chemistry/src/Jupyter/BroombridgeMagic.cs @@ -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; } diff --git a/Chemistry/src/Jupyter/ChemistryEncodeMagic.cs b/Chemistry/src/Jupyter/ChemistryEncodeMagic.cs index 8eac3a69ca3..6e88be2b0be 100644 --- a/Chemistry/src/Jupyter/ChemistryEncodeMagic.cs +++ b/Chemistry/src/Jupyter/ChemistryEncodeMagic.cs @@ -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; } diff --git a/Chemistry/src/Jupyter/FermionHamiltonianMagic.cs b/Chemistry/src/Jupyter/FermionHamiltonianMagic.cs index b61954ed4e0..07e3583bd37 100644 --- a/Chemistry/src/Jupyter/FermionHamiltonianMagic.cs +++ b/Chemistry/src/Jupyter/FermionHamiltonianMagic.cs @@ -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; } @@ -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; } diff --git a/Chemistry/src/Jupyter/WavefunctionMagic.cs b/Chemistry/src/Jupyter/WavefunctionMagic.cs index bed1d935b78..f32b2bf538e 100644 --- a/Chemistry/src/Jupyter/WavefunctionMagic.cs +++ b/Chemistry/src/Jupyter/WavefunctionMagic.cs @@ -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; } From db0835b035da455218db8459b16ca1923e6dd8b0 Mon Sep 17 00:00:00 2001 From: Christopher Granade Date: Tue, 6 Oct 2020 23:33:17 -0700 Subject: [PATCH 2/3] Add metadata for generating docs, document named items. --- Chemistry/src/Runtime/Runtime.csproj | 5 ++++- MachineLearning/src/MachineLearning.csproj | 1 + MachineLearning/src/Types.qs | 12 ++++++------ Numerics/src/Numerics.csproj | 4 ++-- Standard/src/AmplitudeAmplification/Types.qs | 11 ++++++++--- Standard/src/Math/Complex.qs | 6 +++--- Standard/src/Math/Types.qs | 12 ++++++++++++ Standard/src/Optimization/Univariate.qs | 2 +- 8 files changed, 37 insertions(+), 16 deletions(-) diff --git a/Chemistry/src/Runtime/Runtime.csproj b/Chemistry/src/Runtime/Runtime.csproj index 902c0c66483..cf29d4dedff 100644 --- a/Chemistry/src/Runtime/Runtime.csproj +++ b/Chemistry/src/Runtime/Runtime.csproj @@ -6,6 +6,10 @@ true false True + + Microsoft.Quantum.Chemistry @@ -44,4 +48,3 @@ - diff --git a/MachineLearning/src/MachineLearning.csproj b/MachineLearning/src/MachineLearning.csproj index 73b86c36b20..e26329dac2b 100644 --- a/MachineLearning/src/MachineLearning.csproj +++ b/MachineLearning/src/MachineLearning.csproj @@ -3,6 +3,7 @@ netstandard2.1 Microsoft.Quantum.MachineLearning true + Microsoft.Quantum.MachineLearning