Skip to content

Qutrit Device #2#2782

Merged
glassnotes merged 160 commits intoPennyLaneAI:masterfrom
mudit2812:qutrit_device1
Jul 20, 2022
Merged

Qutrit Device #2#2782
glassnotes merged 160 commits intoPennyLaneAI:masterfrom
mudit2812:qutrit_device1

Conversation

@mudit2812
Copy link
Copy Markdown
Contributor

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 updates the QutritDevice abstract base class introduced in PR #2781 such that execution now supports measurement as well.

Description of the Change:

  • Updated QutritDevice. Users can now execute a quantum tape including both operations and measurements. Currently supported measurements include qml.state() and qml.probs().

Benefits:

Possible Drawbacks:

Related GitHub Issues:
#2190

@mudit2812 mudit2812 marked this pull request as ready for review July 13, 2022 23:08
@glassnotes glassnotes self-requested a review July 13, 2022 23:08
Copy link
Copy Markdown
Contributor

@glassnotes glassnotes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything is looking good here! Just minor comments.

@rmoyard rmoyard added this to the v0.26.0 milestone Jul 15, 2022
Copy link
Copy Markdown
Contributor

@antalszava antalszava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good overall @mudit2812! 👍 Just a couple of comments.

Copy link
Copy Markdown
Contributor

@antalszava antalszava left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👏 Great catch again with Counts, thanks for pointing that out!

Copy link
Copy Markdown
Contributor

@glassnotes glassnotes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mudit2812, looks great!

mudit2812 and others added 2 commits July 20, 2022 11:30
Co-authored-by: Olivia Di Matteo <2068515+glassnotes@users.noreply.github.com>
@glassnotes glassnotes merged commit d41d624 into PennyLaneAI:master Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants