-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation for cpp dynamics #2735
base: main
Are you sure you want to change the base?
Conversation
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
:language: cpp | ||
:start-after: [Begin Hamiltonian] | ||
:end-before: [End Hamiltonian] | ||
|
||
2. Time-dependent operator | ||
|
||
We can also construct a time-dependent operator from a function that returns a complex matrix representing the time dynamics of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are 3 more Python tabs in this file - do they have a C++ equivalent?
Also, for the table of integrators at the bottom, I believe these are just for python? Which C++ integrators should we document?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For remaining C++ examples, I will check with @1tnguyen.
The table of integrators is just for Python. From that table we are only using RungeKutta for C++.
In particular, `ScalarOperator` provides an easy way to model arbitrary time-dependent control signals. | ||
Details about CUDA-Q `operator`, including builtin operators that it supports can be found :ref:`here <operators>`. | ||
|
||
.. tab:: C++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Python tab codes include setting the target to dynamics - should we add the equivalent in the C++ tabs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. These are only snippets. We will have to add a Compile & Run section
which will include the command with dynamics target.
int main() { | ||
// [Begin Transmon] | ||
// Parameters | ||
double omega_z = 6.5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add these values to the Python tab as well?
Currently it doesn't have the specific values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think @1tnguyen or @bettinaheim would have a better answer here.
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
Signed-off-by: Sachin Pisal <[email protected]>
Signed-off-by: Sachin Pisal <[email protected]>
Signed-off-by: Sachin Pisal <[email protected]>
Signed-off-by: Sachin Pisal <[email protected]>
Signed-off-by: Sachin Pisal <[email protected]>
e53efa1
to
f9988d4
Compare
Signed-off-by: Sachin Pisal <[email protected]>
Signed-off-by: Sachin Pisal <[email protected]>
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
Signed-off-by: Sachin Pisal <[email protected]>
Signed-off-by: Sachin Pisal <[email protected]>
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
Adding documentation for cpp dynamics