Skip to content

Maybe there's a bug in 'apply_unitary_density_bmm' function? #254

Open
@TuDouuuuu

Description

@TuDouuuuu

https://github.com/mit-han-lab/torchquantum/blob/c8a1ab64e2c0e9a6b570e2307e5ad10a5560f2b1/torchquantum/functional/gate_wrapper.py
LIne 301

    """
    Compute \rho U^\dagger 
    """
    matdag = torch.conj(mat)
    matdag = matdag.type(C_DTYPE).to(density.device)

maybe matdag = torch.conj(mat) is not $U^\dagger$.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions