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

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions