Skip to content

Make C++ to Python state vector copying cheaper #237

@95-martin-orion

Description

@95-martin-orion

Users have noted that calling qsim_simulator.simulate() from Cirq takes considerably longer than the qsim simulation itself. This is likely due to the added cost of copying results from C++ to Python, which in theory can be avoided.

To resolve this issue, the pybind layer should ensure that results from Python are captured in C++ objects without copying.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions