quri_parts.core.state.state_helper module#
- apply_circuit(circuit: NonParametricQuantumCircuit, state: CircuitQuantumState) CircuitQuantumState #
- apply_circuit(circuit: NonParametricQuantumCircuit, state: QuantumStateVector) QuantumStateVector
- apply_circuit(circuit: NonParametricQuantumCircuit, state: ParametricCircuitQuantumState) ParametricCircuitQuantumState
- apply_circuit(circuit: NonParametricQuantumCircuit, state: ParametricQuantumStateVector) ParametricQuantumStateVector
- apply_circuit(circuit: UnboundParametricQuantumCircuitProtocol, state: CircuitQuantumState) ParametricCircuitQuantumState
- apply_circuit(circuit: UnboundParametricQuantumCircuitProtocol, state: QuantumStateVector) ParametricQuantumStateVector
- apply_circuit(circuit: UnboundParametricQuantumCircuitProtocol, state: ParametricCircuitQuantumState) ParametricCircuitQuantumState
- apply_circuit(circuit: UnboundParametricQuantumCircuitProtocol, state: ParametricQuantumStateVector) ParametricQuantumStateVector
Returns a new state with the circuit applied.
The original state is not changed.
- quantum_state(n_qubits: int) ComputationalBasisState #
- quantum_state(n_qubits: int, *, bits: int) ComputationalBasisState
- quantum_state(n_qubits: int, *, bits: int, circuit: NonParametricQuantumCircuit) GeneralCircuitQuantumState
- quantum_state(n_qubits: int, *, circuit: NonParametricQuantumCircuit) GeneralCircuitQuantumState
- quantum_state(n_qubits: int, *, bits: int, circuit: UnboundParametricQuantumCircuitProtocol) ParametricCircuitQuantumState
- quantum_state(n_qubits: int, *, circuit: UnboundParametricQuantumCircuitProtocol) ParametricCircuitQuantumState
- quantum_state(n_qubits: int, *, vector: StateVectorType | 'npt.ArrayLike') QuantumStateVector
- quantum_state(n_qubits: int, *, vector: StateVectorType | 'npt.ArrayLike', circuit: NonParametricQuantumCircuit) QuantumStateVector
- quantum_state(n_qubits: int, *, vector: StateVectorType | 'npt.ArrayLike', circuit: UnboundParametricQuantumCircuitProtocol) ParametricQuantumStateVector
Returns a quantum state generated by a given vector, bits, and a circuit.
Raises ValueError if both a vector and bits input at the same time.