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

Use channel_dim. #161

Merged
merged 1 commit into from
Jun 2, 2023
Merged

Use channel_dim. #161

merged 1 commit into from
Jun 2, 2023

Conversation

georgios-ts
Copy link
Contributor

@georgios-ts georgios-ts commented Jun 1, 2023

Description

There are places where we failed to retrieve the input and output dimensions of a general channel. This commit uses the recently added function channel_dim and fixes:

  1. kraus_to_choi if non square input. Additionally flat list for CPTP channels are now supported (related to Enhancement: Functions choi_to_kraus and kraus_to_choi should take either 1D or 2D input for Kraus ops #79).
  2. is_unital if unequal input and output dims.
  3. dual_channel if non square input and output.

Status

  • Ready to go

There are places where we failed to retrieve the input and output dimensions of a general channel.
This commit uses the recently added function `channel_dim` and fixes:

1. `kraus_to_choi` if non square input. Additionally flat list for CPTP channels are now supported.
2. `is_unital` if unequal input and output dims.
3. `dual_channel` if non square input and output.
@vprusso
Copy link
Owner

vprusso commented Jun 2, 2023

You strike again, @georgios-ts . This is such a great change. Thank you for tackling this one!

@vprusso vprusso merged commit 716cd8f into vprusso:master Jun 2, 2023
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.

2 participants