qiskit-community / qiskit-metal

Quantum Hardware Design. Open-source project for engineers and scientists to design superconducting quantum devices with ease.
https://qiskit-community.github.io/qiskit-metal/
Apache License 2.0
279 stars 205 forks source link

fix bug when there's no node to remove #790

Closed quantum-quant closed 2 years ago

quantum-quant commented 2 years ago

What are the issues this pull addresses (issue numbers / links)?

This fixes a newly discovered bug which happens when there's no node to remove in the caculation of reduced capacitance and inductance matrix. In this case, S_k should just be the identity matrix.

Did you add tests to cover your changes (yes/no)?

Did you update the documentation accordingly (yes/no)?

Did you read the CONTRIBUTING document (yes/no)?

yes

Summary

Details and comments