mit-han-lab / torchquantum

A PyTorch-based framework for Quantum Classical Simulation, Quantum Machine Learning, Quantum Neural Networks, Parameterized Quantum Circuits with support for easy deployments on real quantum computers.
https://torchquantum.org
MIT License
1.3k stars 197 forks source link

Allow IBMQ Credentials for GitHub Actions Tests (to automatically test qiskit plugins) #207

Closed GenericP3rson closed 3 months ago

GenericP3rson commented 11 months ago

Currently, the tests automatically skip the qiskit plugins tests because it some of the functions require IBMQ Credentials. There ought to be someway to automatically login with the credentials on GitHub Actions and therefore be able to successfully run the test.

not-lain commented 3 months ago

@GenericP3rson have you tried defining the credentials in the github repo secrets ? image

you can then load your credentials using something similar to this https://github.com/not-lain/loadimg/blob/34216f667360b2e08752457cd4f74e5388e0e86e/.github/workflows/python-publish.yml#L39

GenericP3rson commented 3 months ago

Hi, thanks for the suggestion! This is actually resolved now.