Replies: 3 comments 6 replies
-
I was chatting with @Roger-luo about exactly this on Friday. I think its okay behavior to either Nonetheless, I think Either way, the output would be a state vector, which can still (must) have a method of |
Beta Was this translation helpful? Give feedback.
-
@jon-wurtz can we schedule a meeting to discuss this further or are you OK with just leaving the method to |
Beta Was this translation helpful? Give feedback.
-
I see your points here, they make sense. A Ultimately, we need to be able to extract information from the task (or the state?). When Roger and I originally proposed |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reduced Density matrix
Defining the subsystem
I think we can all agree that the subsystem should be defined in terms of a label that includes the register's name and/or the qubit index inside that register:
which can be easily validated concerning the kernel being executed.
Task level interface vs Simulation State level interface
I would prefer to have a task-level interface for this because ideally, the task is what defines how a kernel is executed. For example if the task has not been executed How do I interpret the following?
in this case since
state
is a property indicating that this is the state of the system before executing the kernel because thetask.run()
method has not been called. in this way one would need to do the following actually to extract the rdm:I think this implementation is also redundent because it puts the runtime implementation into
state
versus putting the logic inside the task object which would circumvent all of the related task infrastructure. Task holds the responsibility for executing the computationstate
is just a way of extracting the underlying implementation of thetask
for Power users who understand how the runtime works.if we work with
task
owning the implementation of the calculations then it becomes clear thattask.rdm(ids)
is the correct interface.Beta Was this translation helpful? Give feedback.
All reactions