Skip to content

Allow CircuitSymbols labels to contain superscripts #78

@goerz

Description

@goerz
>>> CircuitSymbol('BS^(0)', cdim=2)
Traceback (most recent call last):
  File "<ipython-input-4-e7d3c31fe419>", line 1, in <module>
    CircuitSymbol('BS^(0)', cdim=2)
  File "/home/goerz/Documents/Programming/QNET/src/qnet/algebra/core/circuit_algebra.py", line 603, in __init__
    % (self.label, self._rx_label.pattern))
ValueError: label 'BS^(0)' does not match pattern '^[A-Za-z][A-Za-z0-9]*(_[A-Za-z0-9().+-]+)?$'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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