NVIDIA / cuda-quantum

C++ and Python support for the CUDA Quantum programming model for heterogeneous quantum-classical workflows
https://nvidia.github.io/cuda-quantum/
Other
457 stars 159 forks source link

[RFC] Python frontend for 'photonics' target #1937

Open khalatepradnya opened 1 month ago

khalatepradnya commented 1 month ago

Required prerequisites

Describe the feature

cudaq.set_target("photonics")

@cudaq.kernel def photonicsKernel():
qutrits = [qudit(3) for i in range(2)] plus(qutrits[0]) plus(qutrits[1]) plus(qutrits[1]) mz(qutrits)

counts = cudaq.sample(photonicsKernel) print(counts)

khalatepradnya commented 1 month ago

For vis, @Omar-ORCA

Omar-ORCA commented 1 month ago

For vis, @Omar-ORCA

LGTM

khalatepradnya commented 3 weeks ago

Updated the decorator as per inputs from @amccaskey

bettinaheim commented 3 weeks ago

Let's have a quick sync on implementation to make sure we are not missing anything that will lead to some technical pain across the different scenarios in the future. We'll set something up for a larger group and once we have confirmation that works across the board, we can approve and move forward with it. Acknowledged that the API looks good - not we need to talk implementation. :)

khalatepradnya commented 1 week ago

API docs