Skip to content

Commit

Permalink
Delete superfluous wires conversion (#58)
Browse files Browse the repository at this point in the history
* delete superfluous conversion

* re-trigger CI

* re-trigger CI

Co-authored-by: Josh Izaac <josh146@gmail.com>
  • Loading branch information
mariaschuld and josh146 committed Aug 10, 2020
1 parent 48c150a commit 316dcc5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 9 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ PennyLane Forest Plugin
:alt: Documentation Status
:target: http://pennylane-forest.readthedocs.io/en/latest/?badge=latest

Contains the PennyLane Forest plugin. This plugin allows three Rigetti devices to work with PennyLane --- the wavefunction simulator, the Quantum Virtual Machine (QVM), and Quantum Processing Units (QPUs).
Contains the PennyLane Forest plugin. This plugin allows three Rigetti devices to work with
PennyLane --- the wavefunction simulator, the Quantum Virtual Machine (QVM), and Quantum Processing
Units (QPUs).

`pyQuil <https://pyquil.readthedocs.io>`_ is a Python library for quantum programming using the quantum instruction language (Quil) --- resulting quantum programs can be executed using the `Rigetti Forest SDK <https://www.rigetti.com/forest>`_ and the `Rigetti QCS <https://www.rigetti.com/qcs>`_.
`pyQuil <https://pyquil.readthedocs.io>`_ is a Python library for quantum programming using the
quantum instruction language (Quil) --- resulting quantum programs can be executed using the
`Rigetti Forest SDK <https://www.rigetti.com/forest>`_ and the `Rigetti QCS
<https://www.rigetti.com/qcs>`_.

`PennyLane <https://pennylane.readthedocs.io>`_ is a machine learning library for optimization and automatic differentiation of hybrid quantum-classical computations.
`PennyLane <https://pennylane.ai>`_ is a machine learning library for optimization and automatic
differentiation of hybrid quantum-classical computations.


Features
Expand Down
2 changes: 0 additions & 2 deletions pennylane_forest/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,5 @@ def analytic_probability(self, wires=None):
if self._state is None:
return None

wires = wires or self.wires
wires = Wires(wires)
prob = self.marginal_prob(np.abs(self._state) ** 2, wires)
return prob

0 comments on commit 316dcc5

Please sign in to comment.