-
Notifications
You must be signed in to change notification settings - Fork 158
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
Refactor quantum trajectory simulator. #312
Conversation
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.
Thanks!
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.
Couple of small nitpicks.
Thank you for the multitude of qsimcirq cleanup items in this PR as well! I think the separation of names in qtrajectory
will help as well.
@@ -216,7 +216,10 @@ PYBIND11_MODULE(qsim, m) { | |||
.def_readwrite("num_qubits", &Circuit::num_qubits) | |||
.def_readwrite("gates", &Circuit::gates); | |||
|
|||
py::bind_vector<NoisyCircuit>(m, "NoisyCircuit"); | |||
py::class_<NoisyCircuit>(m, "NoisyCircuit") |
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.
This should allow us to remove the PYBIND_MAKE_OPAQUE
line at the top of the file:
qsim/pybind_interface/pybind_main.h
Line 32 in 6ad4cd5
PYBIND11_MAKE_OPAQUE(qsim::NoisyCircuit<qsim::Cirq::GateCirq<float>>); |
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.
Done.
qsimcirq/qsim_simulator.py
Outdated
Raises: | ||
ValueError if internal keys 'c' or 'i' are included in 'qsim_options'. | ||
ValueError if internal keys 'c', 'i' or 's'are included in 'qsim_options'. |
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.
"or 's'are" -> "or 's' are"
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.
Done.
Closes #311