Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs / Fix] Add documentation + Correct GPU Device inference #135

Merged
merged 18 commits into from
Feb 1, 2024

Conversation

dominikandreasseitz
Copy link
Collaborator

  • Remake of pyq gates into pure torch.nn.Modules enables automatic moving of buffers to device.
  • Adding a custom 'to' method to QuantumCircuit since without it, the gates are not moved to the device

@dominikandreasseitz dominikandreasseitz added the bug Something isn't working label Jan 31, 2024
@dominikandreasseitz dominikandreasseitz self-assigned this Jan 31, 2024
@dominikandreasseitz dominikandreasseitz changed the title [Fix] Device inference [Fix] Correct GPU Device inference Jan 31, 2024
pyqtorch/circuit.py Outdated Show resolved Hide resolved
pyqtorch/circuit.py Outdated Show resolved Hide resolved
@dominikandreasseitz dominikandreasseitz changed the title [Fix] Correct GPU Device inference [Docs / Fix] Add documentation + Correct GPU Device inference Feb 1, 2024
docs/index.md Show resolved Hide resolved
pyqtorch/circuit.py Outdated Show resolved Hide resolved
tests/test_circuit.py Show resolved Hide resolved
Copy link
Member

@awennersteen awennersteen left a comment

Choose a reason for hiding this comment

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

lgtm.

Up to you what you think is better with the function

@dominikandreasseitz dominikandreasseitz merged commit e5928a7 into main Feb 1, 2024
6 checks passed
@dominikandreasseitz dominikandreasseitz deleted the ds/fix_device branch February 1, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants