quri_parts.qulacs.circuit.noise.circuit_converter module#
- convert_noise_to_gate(qubits, noise)#
Create
qulacs.QuantumGateBase
representing the noise from the target qubit indices andGateNoiseInstruction
.- Parameters:
qubits (Sequence[int]) – Sequence of qubit indices to which the noise is applied.
noise (GateNoiseInstruction) – Noise representation as
GateNoiseInstruction
.
- Return type:
QuantumGateBase
- convert_circuit_with_noise_model(circuit, noise_model)#
Apply the noise model while converting
NonParametricQuantumCircuit
toqulacs.QuantumCircuit
.After conversion, several gates representing noises are inserted into
qulacs.QuantumCircuit
depending onnoise_model
.- Parameters:
circuit (NonParametricQuantumCircuit) –
NonParametricQuantumCircuit
, which is converted toqulacs.QuantumCircuit
.noise_model (NoiseModel) –
NoiseModel
instance to be applied.
- Return type:
QuantumCircuit