Metadata-Version: 2.4
Name: pennylane-scaleway
Version: 0.2.0
Summary: A Pennylane-compatible package to run pennylane circuits on Scaleway Quantum as a Service
Author: The Scaleway Developers
Author-email: vmacheret@scaleway.com
License: Apache 2
Project-URL: Documentation, https://www.scaleway.com/en/quantum-as-a-service/
Project-URL: Source, https://github.com/scaleway/pennylane-scaleway
Project-URL: Tracker, https://github.com/scaleway/pennylane-scaleway/issues
Requires-Python: >=3.12.0
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: appdirs==1.4.4
Requires-Dist: astunparse==1.6.3
Requires-Dist: autograd==1.8.0
Requires-Dist: autoray==0.8.0
Requires-Dist: cachetools==6.2.1
Requires-Dist: certifi==2025.10.5
Requires-Dist: charset-normalizer==3.4.4
Requires-Dist: diastatic-malt==2.15.2
Requires-Dist: gast==0.6.0
Requires-Dist: idna==3.11
Requires-Dist: networkx==3.5
Requires-Dist: numpy==2.3.4
Requires-Dist: packaging==25.0
Requires-Dist: pennylane==0.43.0
Requires-Dist: pennylane_lightning==0.43.0
Requires-Dist: requests==2.32.5
Requires-Dist: rustworkx==0.17.1
Requires-Dist: six==1.17.0
Requires-Dist: termcolor==3.2.0
Requires-Dist: tenacity==9.1.2
Requires-Dist: tomlkit==0.13.3
Requires-Dist: typing_extensions==4.15.0
Requires-Dist: urllib3==2.5.0
Requires-Dist: wheel==0.45.1
Provides-Extra: aer
Requires-Dist: qiskit-scaleway; extra == "aer"
Provides-Extra: aqt
Requires-Dist: qiskit-scaleway; extra == "aqt"
Provides-Extra: all
Requires-Dist: qiskit-scaleway; extra == "all"
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Pennylane's integration with Scaleway Quantum-as-a-Service
Scaleway provider implementation for Pennylane SDK (Quantum Machine Learning Framework).

**Pennylane-Scaleway** is a Python package to run pennylane's QML circuits on [Scaleway](https://www.scaleway.com/) infrastructure, providing access to:
- [Aer](https://github.com/Qiskit/qiskit-aer) state vector and tensor network multi-GPU emulators
- [AQT](https://www.aqt.eu/) ion-trapped quantum computers
- *Coming Soon!* [IQM](https://meetiqm.com/) superconducting quantum computers

More info on the [Quantum service web page](https://www.scaleway.com/en/quantum-as-a-service/).

## Installation

We encourage installing Scaleway provider via the pip tool (a Python package manager):

```bash
pip install pennylane-scaleway
```

## Getting started

To run your pennylane's circuits on Scaleway's quantum backends, simply change your device's name and add your project_id and secret_key:
```python
import pennylane as qml

device = qml.device("scaleway.aer",
        wires=2,
        project_id=<your-project-id>,
        secret_key=<your-secret-key>,
        backend="EMU-AER-16C-128M"
    )

@qml.set_shots(512)
@qml.qnode(device)
def my_circuit():
    qml.Hadamard(wires=0)
    qml.CNOT(wires=[0, 1])
    return qml.counts()

print(my_circuit())

device.stop() # Don't forget to close the session when you're done!
```

You can also use the device as a context manager so your session is automatically closed when exiting the context:
```python
import pennylane as qml

with qml.device("scaleway.aer",
    wires=2,
    project_id=<your-project-id>,
    secret_key=<your-secret-key>,
    backend="EMU-AER-16C-128M"
) as dev:

    @qml.set_shots(512)
    @qml.qnode(dev)
    def circuit():
        qml.Hadamard(wires=0)
        qml.CNOT(wires=[0, 1])
        return qml.counts()

    print(circuit())
```


Define a quantum circuit and run it

```python
# Define a quantum circuit that produces a 4-qubit GHZ state.
qc = QuantumCircuit(4)
qc.h(0)
qc.cx(0, 1)
qc.cx(0, 2)
qc.cx(0, 3)
qc.measure_all()

## Development
This repository is in a very early stage and is still in active development. If you are looking for a way to contribute please read [CONTRIBUTING.md](CONTRIBUTING.md).

## Reach us
We love feedback. Feel free to reach us on [Scaleway Slack community](https://slack.scaleway.com/), we are waiting for you on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)..

## License
[License Apache 2.0](LICENSE)
