Skip to content

ディープテック経済

市場が追いついたら、もう遅い。

Menu
  • Entertainment
  • お問い合わせ
  • アカウント
  • パスワードのリセット
  • プロファイル
  • ログイン
  • 一つ一つ
  • 登録
Menu

量子コンピュータエラー緩和技術「mitiq」の紹介

Posted on 2023年1月23日2023年1月23日 by DeepRecommend
https://github.com/unitaryfund/mitiq

mitiqとは

量子コンピュータにエラー緩和技術を実装するための
パッケージです。

現在の量子コンピュータは、

  • 環境との相互作用
  • 不完全なゲートアプリケーション
  • 状態準備や測定エラー
    などによりノイズが多くなっています。

エラー緩和は、量子プログラムを巧妙にコンパイルすることで、
これらの影響をソフトウェアレベルで軽減しようとするものです。

始める

インストールします。

!pip install mitiq

回路を入力し、計算したい期待値を返す関数を定義し、
mitiqを使用してエラーを軽減します。

import cirq
from mitiq import zne, benchmarks

def execute(circuit: cirq.Circuit, noise_level: float = 0.001) -> float:
    """Returs Tr[ρ |0⟩⟨0|] where ρ is the state prepared by the circuit with depolarizing noise."""
    noisy_circuit = circuit.with_noise(cirq.depolarize(p=noise_level))
    return cirq.DensityMatrixSimulator().simulate(noisy_circuit).final_density_matrix[0, 0].real


circuit: cirq.Circuit = benchmarks.generate_rb_circuits(n_qubits=1, num_cliffords=50)[0]

true_value = execute(circuit, noise_level=0.0)       # 理想
noisy_value = execute(circuit)                       # ノイズ有
zne_value = zne.execute_with_zne(circuit, execute)   # ノイズ有 + mitiq

print(f"Error (w/o  Mitiq): %0.4f" %abs((true_value - noisy_value) / true_value))
print(f"Error (with Mitiq): %0.4f" %abs((true_value - zne_value) / true_value))

Error (w/o Mitiq): 0.0688
Error (with Mitiq): 0.0002

コメントを残す コメントをキャンセル

メールアドレスが公開されることはありません。 ※ が付いている欄は必須項目です

カテゴリー

  • Business (40)
    • Consulting (8)
    • Finance (6)
    • Sales_Marketing (6)
  • Human Resources (4)
  • Marketing (38)
    • Design (8)
    • Music (15)
    • Video (2)
  • News (32)
  • Operation (3)
  • Q&A (5)
  • Technology (205)
    • AI (101)
    • Brain (49)
    • Quantum (21)
  • Value (159)
  • アーカイブ (4,170)

アーカイブ

  • 2026年2月 (6)
  • 2026年1月 (2)
  • 2025年12月 (1)
  • 2025年11月 (1)
  • 2025年10月 (2)
  • 2025年9月 (1)
  • 2025年7月 (1)
  • 2025年6月 (3)
  • 2025年5月 (3)
  • 2025年4月 (1)
  • 2025年3月 (2)
  • 2024年12月 (4)
  • 2024年11月 (5)
  • 2024年10月 (2)
  • 2024年8月 (1)
  • 2024年7月 (3)
  • 2024年6月 (35)
  • 2024年5月 (98)
  • 2024年4月 (16)
  • 2024年3月 (9)
  • 2024年2月 (3)
  • 2023年10月 (1)
  • 2023年9月 (13)
  • 2023年8月 (10)
  • 2023年7月 (77)
  • 2023年6月 (23)
  • 2023年5月 (7)
  • 2023年4月 (26)
  • 2023年3月 (22)
  • 2023年2月 (21)
  • 2023年1月 (53)
  • 2022年12月 (17)
  • 2022年11月 (1)
© 2026 ディープテック経済 | Powered by Minimalist Blog WordPress Theme