Open junnaka51 opened 1 year ago
Caution is needed when using QuantestPyError as a mother class because...
try:
assert_is_fuga()
except QuantestPyAssertionError:
print("hoge") # called when QuantestPyAssertionError
try:
assert_is_fuga()
except QuantestPyError:
print("hoge") # called when QuantestPyAssertionError and QuantestPyError
try:
assert_is_fuga()
except Exception:
print("hoge") # called when TypeError, KeyError, ...., QuantestPyAssertionError and QuantestPyError
230112
- __init__.py
- exception.py
- assertion/ # one file per method
- get_ctrl_val.py
- state_vec_is_normalized.py
- ...
- ancilla_is_zero.py
- exception.py
- simulator/
- pauli_circuit.py
- quantestpy_circuit.py
- state_vector_circuit.py
- exception.py
- converter/
- cvt_qasm.py
- cvt_qiskit.py
- cvt_qulacs.py
- cvt_cirq.py
- ...
- exception.py
- visualization/
- pauli_circuit_drawer.py
- quantestpy_circuit_drawer.py
- state_vector_circuit_drawer.py
- test/
- assertion/ # one directory per one assert method(=module)
- get_ctrl_val/
- test_hogehoge.py
- simulator/
- converter/