pennylane
pennylane copied to clipboard
Qutrit Non-Parametric Ops #1 (TShift, TClock)
Context: There are very few simulators available today that offer qudit simulation. One notable example is Google's Cirq, which includes support for qudit operations. However, the simulator is far from complete, and a key drawback is the lack of operations available, which creates a need for users to define operations themselves. Popular libraries such as Qiskit and QuTiP also include some qudit manipulation capabilities, but with few use cases. Beyond these libraries, qudit simulation solutions are quite limited. Moreover, qudit simulation is a feature that is already in demand, as seen in this issue on the PennyLane repository.
This PR builds upon the previous PR's that added qutrit functionality by implementing the non-parametric Ternary Shift and Clock operations, which are the generalized analogs of the Pauli X and Z operations respectively.
Description of the Change:
- Added
TShift()
andTClock()
operation to PennyLane to use with qutrit devices.
Benefits:
Possible Drawbacks:
Related GitHub Issues: https://github.com/PennyLaneAI/pennylane/issues/2190
Codecov Report
Merging #2841 (71ef4d4) into master (6452e69) will increase coverage by
0.00%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #2841 +/- ##
=======================================
Coverage 99.65% 99.65%
=======================================
Files 263 264 +1
Lines 22219 22283 +64
=======================================
+ Hits 22142 22206 +64
Misses 77 77
Impacted Files | Coverage Δ | |
---|---|---|
pennylane/_qutrit_device.py | 100.00% <ø> (ø) |
|
pennylane/devices/default_qutrit.py | 100.00% <100.00%> (ø) |
|
pennylane/ops/qutrit/__init__.py | 100.00% <100.00%> (ø) |
|
pennylane/ops/qutrit/non_parametric_ops.py | 100.00% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.