unitary icon indicating copy to clipboard operation
unitary copied to clipboard

Qudit to Qubit state and unitary transforms expect uniform qudit dimensions

Open smitsanghavi opened this issue 3 years ago • 0 comments

The current interface of the methods in qudit_state_transform.py ask for a qudit_dimension and num_qudits, the implicit assumption being that all qudits in the system are of the same dimension. We should add support for systems having a mix of different dimensional qudits.

This would require changes to the tensor reshaping and remapping logic to generalize the transforms.

The interface can then accept a qid_shape tuple attribute similar to many Cirq methods, which will also be a nice consistency benefit.

smitsanghavi avatar Jan 16 '23 01:01 smitsanghavi