Skip to main content
IBM Quantum Platform
번역 정보

이 페이지의 추가 언어 번역이 곧 제공될 예정입니다.

qiskit_noise_learning.utils.build_with_prep_noise

qiskit_noise_learning.utils.build_with_prep_noise(circuit: QuantumCircuit, prep_noise_ref: str = 'prep', prep_modifier_ref: str = '') → tuple[QuantumCircuit, Samplex]

GitHub

Build a template circuit with injectable preparation noise.

This function uses the normal samplex build path except adds an additional node for injectable preparation noise at the beginning of the circuit.

Parameters

  • circuit – The annotated circuit to build.
  • noise_ref – The name of the reference to the noise map.
  • modifier_ref – The name used for the argument to modify the rates of the noise map.

Returns

The template circuit and the samplex.

Raises

ValueError – If the circuit does not begin with a left-dressed twirl annotated box.

이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.