Python/quantum
Christian Clauss ef9827166e
Approve functions used as default arguments (#4699)
* Approve functions used as default argumenets

* The default value for **seed** is the result of a function call

The default value for **seed** is the result of a function call which is not normally recommended and causes flake8-bugbear to raise a B008 error. However, in this case, it is accptable because `LinearCongruentialGenerator.__init__()` will only be called once per instance and it ensures that each instance will generate a unique sequence of numbers.

* The default value for **backend** is the result of a function call

The default value for **backend** is the result of a function call which is not normally recommended and causes flake8-bugbear to raise a B008 error. However, in this case, it is accptable because `Aer.get_backend()` is called when the function is definition and that same backend is then reused for function calls.

* Update linear_congruential_generator.py

* Update ripple_adder_classic.py

* Update ripple_adder_classic.py

* Update ripple_adder_classic.py

* Update ripple_adder_classic.py

* Update ripple_adder_classic.py
2021-08-31 07:56:19 +02:00
..
__init__.py Add __init__.py files in all the directories (#2503) 2020-09-28 19:42:36 +02:00
deutsch_jozsa.py Fix broken build: Remove trailing spaces (#3501) 2020-10-18 18:07:27 +02:00
half_adder.py Fix the build -- 88 chars per line max. (#3437) 2020-10-17 13:42:29 +02:00
not_gate.py Fix errors in Quantum algorithm (#3273) 2020-10-14 07:58:52 +02:00
quantum_entanglement.py added script to perform quantum entanglement (#3270) 2020-10-14 12:25:20 +02:00
README.md Add IBM Qiskit References (#2561) 2020-10-29 08:43:34 +08:00
ripple_adder_classic.py Approve functions used as default arguments (#4699) 2021-08-31 07:56:19 +02:00
single_qubit_measure.py Improve validate solutions script & fix pre-commit error (#3253) 2020-10-13 15:41:12 +05:30