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 and GateNoiseInstruction.

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 to qulacs.QuantumCircuit.

After conversion, several gates representing noises are inserted into qulacs.QuantumCircuit depending on noise_model.

Parameters:
  • circuitNonParametricQuantumCircuit, which is converted to qulacs.QuantumCircuit.

  • noise_modelNoiseModel instance to be applied.