Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Numerics package documentation #511

Closed
frtibble opened this issue Sep 4, 2019 · 4 comments
Closed

Numerics package documentation #511

frtibble opened this issue Sep 4, 2019 · 4 comments
Assignees
Labels
Area-Reference Issue relates to API reference documentation enhancement

Comments

@frtibble
Copy link
Contributor

frtibble commented Sep 4, 2019

I've seen that some operations (e.g. "Carry") are included in the Microsoft.Quantum.Arithmetic namespace by default, whilst there are some (e.g. "AddI") that need the Microsoft.Quantum.Numerics package installed.

It would be helpful if this could be refenced somewhere in the documentation, for example in the summary of Microsoft.Quantum.Arithmetic, that some of the operations in Arithmetic require the Numerics package with a link to the installation.

Thanks,
Frances

@cgranade cgranade added Area-Reference Issue relates to API reference documentation enhancement labels Sep 4, 2019
@cgranade
Copy link
Contributor

cgranade commented Sep 4, 2019

That's a good point, @frtibble, thanks for raising the issue. At the moment, we don't have a great way to document which package contributes a given operation or function; especially for those namespaces like Microsoft.Quantum.Arithmetic, Microsoft.Quantum.Math, and Microsoft.Quantum.Convert that are split across packages, it would be good if we could document that similarly to how C# API docs list which assembly contributes a given type. I like the idea of providing better links from namespace descriptions in the meantime, though, as a workaround.

+@bromeg, @natke, and @v-stgr for discussion.

@frtibble
Copy link
Contributor Author

frtibble commented Sep 4, 2019

Yes, I agree - your first suggestion would be the clearest, I think, and it'd make the most sense given that's how it's documented in C#. Thanks for considering my suggestion too.

@natke
Copy link
Member

natke commented Jan 29, 2020

It sounds like we need to document the dependencies between packages?

Is there a one to one correspondence between package and namespace, or not?

@cgranade
Copy link
Contributor

There's not generally a one-to-one mapping between namespaces and packages, unfortunately. They are pretty correlated, but there's also namespaces like Microsoft.Quantum.Math and Microsoft.Quantum.Diagnostics that get split across packages for various technical reasons. For the most part, if a user uses the new SDK package, then they should be OK to use everything in the references except for domain-specific functionality brought in from Microsoft.Quantum.Chemistry.*, Microsoft.Quantum.Numerics, Microsoft.Quantum.Research, and Microsoft.Quantum.MachineLearning.

@Bradben Bradben closed this as completed Jan 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area-Reference Issue relates to API reference documentation enhancement
Projects
None yet
Development

No branches or pull requests

7 participants