paddle_quantum.locc.locc_state
The source file of the LoccState class.
- class paddle_quantum.locc.locc_state.LoccState(data=None, prob=None, measured_result=None, num_qubits=None, backend=None, dtype=None)
Bases:
State
An LOCC state in LOCCNet.
We care not only about the quantum state in LOCC, but also about the probability of getting it and the corresponding measurement result. Therefore, this class contains three attributes: quantum state
data
, the probability of getting this stateprob
, and the measurement result leading to this state, namelymeasured_result
.- Parameters:
data (Tensor) – Matrix form of the quantum state of this
LoccState
. Defaults toNone
.prob (Tensor) – Probability of getting this quantum state.. Defaults to
None
.measured_result (str) – Measurement result leading to this quantum state. Defaults to
None
.num_qubits (int | None) – Total number of qubits. Defaults to
None
.backend (Backend | None) – Backend of Paddle Quantum. Defaults to
None
.dtype (str | None) – Type of data. Defaults to
None
.
- property is_swap_back: bool
- reset_sequence()