Metadata-Version: 2.4
Name: unitarylab
Version: 1.0.1
Summary: A Python package for quantum simulator from UnitaryLab.
Author: UnitaryLab
License-Expression: LicenseRef-UnitaryLab-LICENSE
Requires-Python: <3.13,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.zh-CN
License-File: LICENSE.en
Requires-Dist: numpy
Requires-Dist: scipy
Requires-Dist: torch
Requires-Dist: matplotlib
Requires-Dist: pylatexenc
Requires-Dist: scikit-learn
Requires-Dist: sympy
Requires-Dist: mpmath
Dynamic: license-file

# unitarylab

Unitarylab is the quantum simulator SDK from [UntiaryLab](https://unitarylab.com/).

## Installation

```bash
pip install unitarlab
```

## Quick Start

### Create a Quantum Circuit

```python
from unitarylab import Circuit, Register, ClassicalRegister

qr = Register('qr', 2)
cr = ClassicalRegister('cr', 2)
qc = Circuit(qr, qc)
```

or simply

```python
from unitarylab import Circuit

qc = Circuit(2)
```

### Add quantum gates to the Circuit


```python
qc.h(0)
qc.cx(0,1)
```

### Execute the Circuit

```python
result = qc.execute()

print(result.state)
```

### Visulize the Circuit

```python
qc.draw() # picture of the Circuit

qc.analyze() # txt information of the Circuit
```

# License

License: LicenseRef-UnitaryLab-LICENSE. 
The Chinese license text is authoritative; the English version is provided for reference only.
