Skip to content

Commit

Permalink
Docs preview for PR #1728.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuda-quantum-bot committed Jun 27, 2024
1 parent 1f67bad commit 9fde893
Show file tree
Hide file tree
Showing 154 changed files with 10,743 additions and 9,714 deletions.
1 change: 0 additions & 1 deletion pr-1728/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ endif()

# code snippets in docs
add_nvqpp_test(QuickStart_default quick_start.cpp SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/sphinx/snippets/cpp)
add_nvqpp_test(FirstKernel using/first_kernel.cpp SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/sphinx/snippets/cpp)
add_nvqpp_test(FirstObserve using/first_observe.cpp SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/sphinx/snippets/cpp)
add_nvqpp_test(FirstSample using/first_sample.cpp SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/sphinx/snippets/cpp)
add_nvqpp_test(Timing using/time.cpp SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/sphinx/snippets/cpp APPLICATION_ARGS "10")
Expand Down
Binary file removed pr-1728/_images/Bloch_sphere.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions pr-1728/_sources/api/default_ops.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,6 @@ This operation applies the universal three-parameters operator to target qubit.
// | exp(iφ) * sin(θ/2) exp(i(λ + φ)) * cos(θ/2) |
u3(M_PI, M_PI, M_PI_2, q);
.. note::

The `u3` operation is currently supported in simulation only.

Adjoint and Controlled Operations
==================================
Expand Down
30 changes: 28 additions & 2 deletions pr-1728/_sources/api/languages/cpp_api.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,28 @@ Common
.. doxygenclass:: cudaq::sample_result
:members:

.. doxygentypedef:: cudaq::State
.. doxygenclass:: cudaq::SimulationState

.. doxygenstruct:: cudaq::SimulationState::Tensor
:members:

.. doxygenenum:: cudaq::SimulationState::precision

.. doxygenenum:: cudaq::simulation_precision

.. doxygentypedef:: cudaq::tensor

.. doxygentypedef:: cudaq::TensorStateData

.. doxygentypedef:: cudaq::state_data

.. doxygenclass:: cudaq::CusvState

.. doxygenclass:: nvqir::MPSSimulationState

.. doxygenclass:: nvqir::TensorNetSimulationState

.. doxygenclass:: cudaq::RemoteSimulationState

.. doxygenclass:: cudaq::registry::RegisteredType
:members:
Expand All @@ -72,7 +93,6 @@ Common

Noise Modeling
================
.. doxygentypedef:: cudaq::complex

.. doxygenstruct:: cudaq::kraus_op
:members:
Expand Down Expand Up @@ -151,6 +171,8 @@ Platform
.. doxygenclass:: cudaq::quantum_platform
:members:

.. doxygenclass:: cudaq::SerializedCodeExecutionContext

.. doxygentypedef:: cudaq::QuantumTask

.. doxygentypedef:: cudaq::QubitConnectivity
Expand All @@ -162,6 +184,10 @@ Platform
Utilities
=========

.. doxygentypedef:: cudaq::complex

.. doxygentypedef:: cudaq::real

.. doxygenfunction:: cudaq::range(std::size_t)

Namespaces
Expand Down
5 changes: 5 additions & 0 deletions pr-1728/_sources/api/languages/python_api.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,17 @@ Backend Configuration
Data Types
=============================

.. autoclass:: cudaq::SimulationPrecision
:members:

.. autoclass:: cudaq::Target
:members:

.. autoclass:: cudaq::State
:members:

.. autoclass:: cudaq::Tensor

.. autoclass:: cudaq::QuakeValue

.. automethod:: __add__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@
"# Initialize a kernel/ ansatz and variational parameters.\n",
"@cudaq.kernel\n",
"def kernel(angles: List[float]):\n",
" # Allocate a qubit that is initialised to the |0> state.\n",
" # Allocate a qubit that is initialized to the |0> state.\n",
" qubit = cudaq.qubit()\n",
" # Define gates and the qubits they act upon.\n",
" rx(angles[0], qubit)\n",
" ry(angles[1], qubit)\n",
"\n",
"\n",
"# Our hamiltonian will be the Z expectation value of our qubit.\n",
"# Our Hamiltonian will be the Z expectation value of our qubit.\n",
"hamiltonian = cudaq.spin.z(0)\n",
"\n",
"# Initial gate parameters which intialize the qubit in the zero state\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Treat the code snippet below like a black box, i.e you dont have access to the value of the property argument and can just query f with different inputs.\n",
"# Treat the code snippet below like a black box, i.e you don't have access to the value of the property argument and can just query f with different inputs.\n",
"\n",
"\n",
"def f(x, property='constant'):\n",
Expand Down

This file was deleted.

Loading

0 comments on commit 9fde893

Please sign in to comment.