Code Monkey home page Code Monkey logo

Comments (6)

95-martin-orion avatar 95-martin-orion commented on June 3, 2024

In particular, item (2) is high priority for the qsim-Cirq interface as well. Given that it's a requirement for both TFQ and Cirq, the implementation should live in the C++ code.

from qsim.

sergeisakov avatar sergeisakov commented on June 3, 2024

Cirq doesn't have the ability to sample from a state, does it? I have some code for sampling. I'll add it.

from qsim.

95-martin-orion avatar 95-martin-orion commented on June 3, 2024

Cirq does have code for sampling from a state, but for usability I think it makes sense for qsim to provide this behavior directly. Thanks for looking into it.

from qsim.

95-martin-orion avatar 95-martin-orion commented on June 3, 2024

Cirq doesn't have the ability to sample from a state, does it? I have some code for sampling. I'll add it.

@sergeisakov, do you have an update on this? I'm starting to hit this requirement on non-TFQ integration work.

from qsim.

MichaelBroughton avatar MichaelBroughton commented on June 3, 2024

If you want you can copy the sampling code in TFQ to keep things moving and then improve it when a faster implementation comes along

https://github.com/tensorflow/quantum/blob/master/tensorflow_quantum/core/qsim/state_space.h#L55

Just a thought :)

from qsim.

95-martin-orion avatar 95-martin-orion commented on June 3, 2024

The features discussed here are now available in core qsim. #65 tracks adding explicit sampling support in qsimcirq.

from qsim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.