-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change method name #161
change method name #161
Conversation
gandalfr-KY
commented
Aug 27, 2024
class | old_name | new_name | description |
---|---|---|---|
Circuit | gate_count | n_gates | 違和感ありました 異論あれば遠慮なく |
Gate/ParamGate | get_*_qubit_list/mask | *_qubit_list/mask | |
PauliGate 他 | get_pauli_id_list | pauli_id_list | |
StateVector(Batched) | amplitudes | get_amplitudes | GPUからの転送コスト大 |
ついでに触れると |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Circuit::get、qulacsの人がCircuitのことを配列と同じインターフェースで使ってほしくてつけたんだろうけど、sizeはgate_countだし微妙なので、get_gate_atとかでいいかも |
@@ -25,12 +25,12 @@ class StateVector { | |||
/** | |||
* @attention Very slow. You should use load() instead if you can. | |||
*/ | |||
void set_amplitude_at_index(std::uint64_t index, const Complex& c); | |||
void set_amplitude_at(std::uint64_t index, const Complex& c); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_at
に統一できていてかなりわかりやすいです!
ありがとうございます
ParamGateの命名変更もついでに対応しました。 |
追加で変更した分のまとめです
|
ParamGateの変更もOKです!ありがとうございます |