PennyLaneAI / pennylane

PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
https://pennylane.ai
Apache License 2.0
2.17k stars 568 forks source link

Update input types of `qml.transpile` #5864

Closed EmilianoG-byte closed 1 week ago

EmilianoG-byte commented 1 week ago

Context:

Currently the documentation leads you to think that only nx.Graph or list containing integers are valid inputs for the coupling map, but in reality any other input valid to nx.to_networkx_graph can be passed.

Description of the Change:

Write the correct list of input types accepted.

Benefits:

More clear argument inputs for the user.

Possible Drawbacks:

[sc-66100]

github-actions[bot] commented 1 week ago

Hello. You may have forgotten to update the changelog! Please edit doc/releases/changelog-dev.md with:

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.67%. Comparing base (d90137d) to head (1393c46). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #5864 +/- ## ========================================== - Coverage 99.68% 99.67% -0.01% ========================================== Files 421 421 Lines 40461 40165 -296 ========================================== - Hits 40332 40035 -297 - Misses 129 130 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.