dwavesystems / dwave-gate

dwave-gate is a software package for constructing, modifying and running quantum circuits on the provided state-vector simulator.
Apache License 2.0
12 stars 7 forks source link

State Preparation in dwave.gate #45

Closed ACE07-Sev closed 5 months ago

ACE07-Sev commented 5 months ago

Greetings D-Wave team,

Hope all are well. I am quite new to this module, and I am trying to see how one can prepare an arbitrary state using dwave.gate. I can see that you can use .set_state (if I recall the method name correctly), but it doesn't show the algorithm used for creating the circuit to prepare the state.

Can you kindly point me to where this is explored?

thisac commented 5 months ago

Hello @ACE07-Sev,

The Circuit.set_state() method simply sets the state vector (or matrix) to the requested value directly. It's used by the simulator and can be used as a way of running simulations with arbitrary initial states. State preparations routines, such as Möttönen State Preparation etc., aren't yet supported.

ACE07-Sev commented 5 months ago

I see. Thank you for the update!