quri_parts.qulacs.circuit.noise.circuit_converter module#
- quri_parts.qulacs.circuit.noise.circuit_converter.convert_noise_to_gate(qubits: Sequence[int], noise: GateNoiseInstruction) QuantumGateBase #
Create
qulacs.QuantumGateBase
representing the noise from the target qubit indices andGateNoiseInstruction
.- Parameters:
qubits – Sequence of qubit indices to which the noise is applied.
noise – Noise representation as
GateNoiseInstruction
.
- quri_parts.qulacs.circuit.noise.circuit_converter.convert_circuit_with_noise_model(circuit: NonParametricQuantumCircuit, noise_model: NoiseModel) QuantumCircuit #
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
, which is converted toqulacs.QuantumCircuit
.noise_model –
NoiseModel
instance to be applied.