-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/eclipse-qrisp/Qrisp into ba…
…cktracking_upgrades
- Loading branch information
Showing
43 changed files
with
1,242 additions
and
880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,270 changes: 700 additions & 570 deletions
1,270
documentation/source/general/changelog/04_shor_plot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions
58
documentation/source/reference/Backend Interface/DockerSimulators.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
.. _DockerSimulators: | ||
|
||
Docker Simulators | ||
================= | ||
|
||
The Qrisp network interface enables convenient access to a variety of simulators through a docker container. You can simply download the docker container and obtain access to simulation without having to fight through installation and/or conversion issues. For this you need `Docker Desktop <https://www.docker.com/products/docker-desktop/>`_. This software allows you to install and execute the most complex software environments without the hassle of compatibility issues regarding your platform. It is therefore a perfect fit for hosting quantum simulators, which can be tricky to get running. After you are done installing, please execute: | ||
|
||
.. code-block:: console | ||
docker pull qrisp/qrisp_sim_collection:latest | ||
To start the docker container your run: | ||
|
||
.. code-block:: console | ||
docker run -p 8083:8083 -p 8084:8084 -p 8085:8085 -p 8086:8086 -p 8087:8087 -p 8088:8088 -p 8089:8089 -p 8090:8090 qrisp/qrisp_sim_collection | ||
The ``-p`` commands open the ports of the docker container such that Qrisp can send the simulation requests. Once you have run this command, the container should appear in the Docker GUI, so you can simply press start if you need it again. | ||
|
||
Once the container is running, you can start using the following backends on your machine: | ||
|
||
|
||
.. list-table:: | ||
:widths: 25 50 | ||
:header-rows: 1 | ||
|
||
* - Simulator Name | ||
- Description | ||
* - ``CirqSim()`` | ||
- `"A sparse matrix state vector simulator that uses numpy." <https://quantumai.google/reference/python/cirq/Simulator>`_ | ||
* - ``PennylaneSim()`` | ||
- `"The default.qubit device is PennyLane’s standard qubit-based device." <https://docs.pennylane.ai/en/stable/code/api/pennylane.devices.default_qubit.html>`_ | ||
* - ``MQTSim()`` | ||
- `"A quantum circuit simulator based on decision diagrams written in C++." <https://mqt.readthedocs.io/projects/ddsim/en/latest/>`_ | ||
* - ``PennylaneRigettiSim()`` | ||
- `Simulator for the Pennylane-Rigetti plugin <https://docs.pennylane.ai/projects/rigetti/en/latest/code.html>`_ | ||
* - ``PyTketStimSim()`` | ||
- `"Stim is a fast simulator for quantum stabilizer circuits." <https://github.com/quantumlib/stim>`_ | ||
* - ``QulacsSim()`` | ||
- `"Qulacs is a fast quantum circuit simulator for simulating large, noisy, or parametric quantum circuits." <https://docs.qulacs.org/en/latest/>`_ | ||
* - ``QSimCirq()`` | ||
- `"qsim is a Schrödinger full state-vector simulator." <https://github.com/quantumlib/qsim/tree/master>`_ | ||
* - ``QiboSim()`` | ||
- `The simulator of the Qibo framework <https://qibo.science/qibo/stable/index.html>`_ | ||
|
||
|
||
|
||
To utilize these simulators you can import the corresponding backend in Python | ||
|
||
>>> from qrisp import QuantumFloat | ||
>>> a = QuantumFloat(3) | ||
>>> a[:] = 3 | ||
>>> b = QuantumFloat(3) | ||
>>> b[:] = 4 | ||
>>> c = a*b | ||
>>> from qrisp.interface import MQTSim | ||
>>> c.get_measurement(backend = MQTSim()) | ||
{12: 1.0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[metadata] | ||
name = qrisp | ||
version = 0.4.1 | ||
version = 0.4.3 | ||
author = Raphael Seidel | ||
author_email = [email protected] | ||
description = A high-level quantum programming language | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.