Albert Mitjans

Results 18 issues of Albert Mitjans

Now when using `qml.counts` with `shots=None` we get the following error: ```python dev = qml.device("default.qubit", wires=1) @qml.node(dev) def circuit(): return qml.counts() ``` ``` pennylane.QuantumFunctionError: The number of shots has to...

Add [pytest-randomly](https://pypi.org/project/pytest-randomly/1.2.3/) to requirements. This plugin randomly shuffles the order of test items. This is done first at the level of modules, then at the level of test classes and...

- Run `black` and `pylint` only on the files that are A (Added), C (Copied), M (Modified), R (Renamed), T (Changed), U (Unmerged), X (Unknown) and B (Broken pairing). See...

### Feature details Operators that have `num_wires = AnyWires` or `num_wires = AllWires` (such as `qml.Barrier`) are applied to all wires when instantiated with `wires = []`. This is the...

enhancement :sparkles:
WIP :construction:

### Feature details Support the comparison of nested operators using the `qml.equal` method. ### Implementation _No response_ ### How important would you say this feature is? 1: Not important. Would...

enhancement :sparkles:

Change matrix expansion method, which improves performance. The current method does the following: - Computes the `kron` product of `Identity` operators together with the given `base_matrix`, following the wire order...

review-ready :ok_hand:

The `qml.Identity` class can now be instantiated with multiple wires: ```pycon >>> id_op = qml.Identity([0, 1]) >>> id_op.matrix() array([[1., 0., 0., 0.], [0., 1., 0., 0.], [0., 0., 1., 0.],...

review-ready :ok_hand:

- Add `overlapping_ops` property to the `Composite` class. - Improve performance of `eigvals`, `diagonalizing_gates` and `Prod.matrix` methods using the aforementioned property. - Move `eigvals` method to the `Composite` class. To...

review-ready :ok_hand:

1. Compare the `op.hash` when using `qml.equal` with operator arithmetic. 2. Take into account the `op.name` when sorting summands. 3. Add `op.hash` to some arithmetic operators. 4. Use `qml.equal` in...

review-ready :ok_hand: