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

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

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

Parameters:
Return type:

QuantumCircuit