qworder

QWorder simplifies strings representing sequences of quantum gates


Keywords
QUANTUM, COMPUTING, GATESTRINGS, SIMPLIFIER, PAULI, MATRIX, HADAMARD
License
GPL-3.0
Install
pip install qworder==0.6

Documentation

QWorder

QWorder simplifies strings representing sequences of quantum gates.

Installation

pip install qworder

Sample usage

Define a word "HXTTXZXH" with positive sign, and cascade reduce it with cascade_word()

w = Word("HXYYXZXH", True)
c = Cascader()
print(w)
print(c.cascade_word(w))

The output will be:

['HXYYXZXH', True]
['Y', True]