Skip to content

Possibly without effect #141

Open
Open
@nwittler

Description

@nwittler

c3/c3/signal/gates.py

Lines 106 to 115 in 2b4625f

ideal_gate = insert_mat_kron(
[2] * len(dims), # we compare to the computational basis
targets,
[self.ideal],
)
if index:
ideal_gate = tf_project_to_comp(
ideal_gate, dims=[2] * len(dims), index=index
)

Looks like when index is not None this code has no effect, as the second statement reverses the first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-qualityGeneral code quality related issues and PRs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions