pennylane
pennylane copied to clipboard
PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
**Context:** The `'pyscf'` backend in `qchem.molecular_hamiltonian` currently runs `'OpenFermion-PySCF'` to compute molecular integrals with `PySCF`, and uses these integrals to construct a qubit Hamiltonian with `OpenFermion`. With the new support...
The basic idea is to have a clone of `qml.Hamiltonian` with a better name, `LinearCombination` - that additionally inherits from `CompositeOp`. The motivation is that sometimes it is still handy...
### Feature details Users of qiskit will recognize that the 'plot_distribution' functionality represents a convenient way to visualize circuit output probabilities with minimal configuration. Similar to how draw_mpl automatically outputs...
Second block of the Amplitude amplification algorithm toolkit project PR pointing to ```ReflectionOperation``` Some use-examples: https://colab.research.google.com/drive/1EUy9aRPAll7plaIBopbDkTQVo4hCGFs_?authuser=1#scrollTo=Bh0r7LMOiyCt
### Expected behavior I'm trying to use the Qiskit plugin in a neural network defined in JAX. One of the network layers is a quantum circuit written in Pennylane and...
# Context Currently, our sample-based measurement processes that inherit from `SampleMeasurement` implement a [process_samples](https://github.com/PennyLaneAI/pennylane/blob/a05ae286c5925e0c881099cea751193d368779fc/pennylane/measurements/measurements.py#L535) method. This method is capable of turning any samples (array of int64) into the required measurement...
We are currently promoting the dtype of tensorflow variables in the pauli rep of scalar products, this leads to some unexpected and inconsistent behavior, e.g. ```python op = qml.s_prod(tf.constant(0.5), X(0))...
# Context Currently, our sample-based measurement processes that inherit from `SampleMeasurement` implement a [process_samples](https://github.com/PennyLaneAI/pennylane/blob/a05ae286c5925e0c881099cea751193d368779fc/pennylane/measurements/measurements.py#L535) method. This method is capable of turning any samples (array of int64) into the required measurement...
### Before submitting Please complete the following checklist when submitting a PR: - [x ] All new features must include a unit test. If you've fixed a bug or added...
### Expected behavior import pennylane as qml dev = qml.device('qiskit.aer', wires=2) it should create a qiskit aer device ### Actual behavior cannot import name 'extensions' from 'qiskit' (/usr/local/lib/python3.10/dist-packages/qiskit/__init__.py) ### Additional...