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

[Python] Enhancements to the custom operations feature #1968

Merged
merged 3 commits into from
Jul 21, 2024

Conversation

khalatepradnya
Copy link
Collaborator

  • Allow users to specify unitary as np.matrix, 2D array
  • Make custom operations available to look up by name in the builder mode via attribute getter

@khalatepradnya khalatepradnya self-assigned this Jul 19, 2024
@khalatepradnya khalatepradnya added the python-lang Anything related to the Python CUDA Quantum language implementation label Jul 19, 2024
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Jul 19, 2024
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Jul 19, 2024
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

github-actions bot pushed a commit that referenced this pull request Jul 19, 2024
@khalatepradnya khalatepradnya enabled auto-merge (squash) July 19, 2024 20:15
@khalatepradnya khalatepradnya enabled auto-merge (squash) July 19, 2024 20:16
Copy link
Collaborator

@sacpis sacpis 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 to me. A few changes. Thanks @khalatepradnya!

  -- accept np.matrix, 2D arrays
  -- make custom operations avaiable to look up by name in the builder
mode via attribute getter
@khalatepradnya khalatepradnya enabled auto-merge (squash) July 21, 2024 17:53
@khalatepradnya khalatepradnya merged commit 79d0c06 into NVIDIA:main Jul 21, 2024
125 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 21, 2024
@khalatepradnya khalatepradnya deleted the find_custom_op_by_name branch July 22, 2024 18:19
@bettinaheim bettinaheim added this to the release 0.8.0 milestone Jul 29, 2024
@bettinaheim bettinaheim added the no release notes Don't list this PR in the release notes label Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
no release notes Don't list this PR in the release notes python-lang Anything related to the Python CUDA Quantum language implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants