Skip to content

Qubits violating linear type #554

@jon-wurtz

Description

@jon-wurtz

The following is very much an invalid program:

@squin.kernel
def main():
    qb = squin.qubit.new(1)
    squin.gate.cx(qb[0], qb[0])

and yet runs through the simulator just fine. This violates the no-cloning theorem.

Metadata

Metadata

Labels

area: analysisArea: static and dynamic analyses, diagnostics, and metrics.category: bugCategory: this is a bug or something isn't working as expected.category: validationCategory: issues related to validation processes.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions