You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ProjectQ is an open source effort for quantum computing.
12
15
@@ -26,8 +29,8 @@ This allows users to
26
29
Getting started
27
30
---------------
28
31
29
-
To start using ProjectQ, simply follow the installation instructions in the `tutorials <http://projectq.ch/docs/tutorials.html>`__. There, you will also find OS-specific hints, a small introduction to the ProjectQ syntax, and a few `code examples <http://projectq.ch/docs/examples.html>`__. Also, make sure to check out the `ProjectQ
30
-
website <http://www.projectq.ch>`__ and the detailed `code documentation <http://projectq.ch/docs/>`__.
32
+
To start using ProjectQ, simply follow the installation instructions in the `tutorials <http://projectq.readthedocs.io/en/latest/tutorials.html>`__. There, you will also find OS-specific hints, a small introduction to the ProjectQ syntax, and a few `code examples <http://projectq.readthedocs.io/en/latest/examples.html>`__. Also, make sure to check out the `ProjectQ
33
+
website <http://www.projectq.ch>`__ and the detailed `code documentation <http://projectq.readthedocs.io/en/latest/>`__.
Please note that the compiler you specify must support **C++11**!
42
42
43
+
.. note::
44
+
Please use pip version v6.1.0 or higher as this ensures that dependencies are installed in the `correct order <https://pip.pypa.io/en/stable/reference/pip_install/#installation-order>`_.
throw(std::runtime_error("The second argument to get_amplitude() must be a permutation of all allocated qubits. Please make sure you have called eng.flush()."));
299
+
return vec_[index];
300
+
}
301
+
267
302
voidemulate_time_evolution(TermsDict const& tdict, calc_type const& time,
// check that all qubits have been allocated previously
357
+
if (map_.size() != ordering.size() || !check_ids(ordering))
358
+
throw(std::runtime_error("set_wavefunction(): Invalid mapping provided. Please make sure all qubits have been allocated previously (call eng.flush())."));
359
+
360
+
// set mapping and wavefunction
361
+
for (unsigned i = 0; i < ordering.size(); ++i)
362
+
map_[ordering[i]] = i;
363
+
#pragma omp parallel for schedule(static)
364
+
for (std::size_t i = 0; i < wavefunction.size(); ++i)
0 commit comments