Skip to content

cirq-web doesn't support LineQubit #5173

@Strilanc

Description

@Strilanc
import cirq
import cirq_web

cirq_circuit = cirq.Circuit(cirq.H(cirq.LineQubit(0)))
cirq_web.Circuit3D(cirq_circuit).generate_html_file(
    file_name="circuit_viewer.html",
    open_in_browser=True,
)

results in

AttributeError: 'LineQubit' object has no attribute 'row'

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bug-reportSomething doesn't seem to work.triage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions