João P. Moutinho

Results 41 issues of João P. Moutinho

The function `block_to_tensor` for parametric blocks is handled by `_block_to_tensor_embedded`. We should have a similar function for diagonal blocks, e.g. `_block_to_diagonal_embedded` to handle parametric diagonal blocks.

feature
block-system
hamevo
to_check

When calling `HamEvo` on diagonal Hamiltonians the dense matrix is built but then only the diagonal is taken. This is currently done in the `PyQHamiltonianEvolution` class in [`qadence/backends/pyqtorch/convert_ops.py`](https://github.com/pasqal-io/qadence/blob/main/qadence/backends/pyqtorch/convert_ops.py) We should...

good first issue
refactoring

``` import torch from qadence import DiffMode, expectation, add, kron from qadence import X, Y, Z, RX, HamEvo, FeatureParameter x = FeatureParameter("x") n_qubits = 2 # For n_qubits > 1...

bug
differentiability

Current emulated analog interface works with specific `AnalogBlocks` which are converted to `HamEvo` in the PyQ backend with the background interaction, or respective pulses in the Pulser backend. This can...

feature
digital-analog

The `entangle` function is an operation available only for the Pulser backend which helps generate GHZ states with a specific sequence of pulses. We should: - Give it a less...

documentation
digital-analog
refactoring

Main bottlenecks: 1. not using pytest-xdist (TOP prio which has been investigated by both @seitzdom and @m.dagrada only to result in issues with gitlab runners, this however change when we...

testing

Edit: previous issue text: > Currently the calculation of HamEvo is being done directly in the `convert_ops.py` file of each backend, ignoring the same code that exists in PyQTorch /...

backends
refactoring
hamevo

Described here: https://arxiv.org/pdf/2307.00966.pdf

feature
digital-analog

Torch routines to calculate top-k eigenvalues are not efficient / non-existent. The `eigenvalues` function in `qadence.utils` was converting the full tensor to numpy and using [eigs](https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.linalg.eigs.html) from scipy, but this...

performance
core-dev

By @madagra ## Description Currently, the `set_trainable` function is confusing and not very easy to use for more complex tasks such as QEL. This issue aims to improve the current...

refactoring