Logs | Algorithm | Run Mode | Parameters | Result | Status |
---|---|---|---|---|---|
dj | simulator |
secret: 1010 |
01: 1024 |
||
DJ input_secret: 1010 DJ full_secret: 1010 DJ secret: 1010 DJ secret_bit_len: 2 DJ secret_len: 4 DJ input_qubits_count: 2 DJ all_qubits_count: 3 DJ output_qubit: 2 DJ qubits_measurement_list: [1, 0] DJ truth_table: {'00': '1', '01': '0', '10': '1', '11': '0'} DJ truth_table_oracle: ┌───┐ ┌───┐ ░ ░ q_0: ┤ X ├──■──┤ X ├─░────────■────────░─ ├───┤ │ ├───┤ ░ ┌───┐ │ ┌───┐ ░ q_1: ┤ X ├──■──┤ X ├─░─┤ X ├──■──┤ X ├─░─ └───┘┌─┴─┐└───┘ ░ └───┘┌─┴─┐└───┘ ░ q_2: ─────┤ X ├──────░──────┤ X ├──────░─ └───┘ ░ └───┘ ░ DJ circuit: ┌───┐ ┌─────────────────────┐┌───┐ ░ ┌─┐ q_0: ┤ H ├─────┤0 ├┤ H ├─░────┤M├ ├───┤ │ │├───┤ ░ ┌─┐└╥┘ q_1: ┤ H ├─────┤1 Truth Table Oracle ├┤ H ├─░─┤M├─╫─ ├───┤┌───┐│ │└───┘ ░ └╥┘ ║ q_2: ┤ X ├┤ H ├┤2 ├──────░──╫──╫─ └───┘└───┘└─────────────────────┘ ░ ║ ║ c: 2/══════════════════════════════════════════╩══╩═ 0 1 DJ if majority of counts is all 0 - secret is constant DJ if majority of counts is any other state - secret is balanced DJ if counts are distributed via multiple states - probably secret is unbalanced RUNNER backend: AerSimulator('aer_simulator') RUNNER transpiled circuit: ┌─────────┐ ┌───┐ ░ ░ ┌───┐ ░ ┌─┐ q_0: ─┤ U2(0,0) ├───■──┤ X ├─░────────■────────░─┤ H ├─░────┤M├ ├─────────┤ │ ├───┤ ░ ┌───┐ │ ┌───┐ ░ ├───┤ ░ ┌─┐└╥┘ q_1: ─┤ U2(0,0) ├───■──┤ X ├─░─┤ X ├──■──┤ X ├─░─┤ H ├─░─┤M├─╫─ ┌┴─────────┴┐┌─┴─┐└───┘ ░ └───┘┌─┴─┐└───┘ ░ └───┘ ░ └╥┘ ║ q_2: ┤ U2(-π,-π) ├┤ X ├──────░──────┤ X ├──────░───────░──╫──╫─ └───────────┘└───┘ ░ └───┘ ░ ░ ║ ║ c: 2/═════════════════════════════════════════════════════╩══╩═ 0 1 RUNNER job_id: 24d70db6-2290-4f63-84fd-44c2b2f3fbc0 RUNNER job status: DONE RUNNER statevector: 000: (-6.734631938767465e-18+0j) 001: (-1.3580582744750046e-35+0j) 010: (-0.7071067811865472+0j) 011: (-4.400527252257787e-19+0j) 100: (6.734631938767465e-18+0j) 101: (1.3580582744750046e-35+0j) 110: (0.7071067811865472+0j) 111: (4.400527252257787e-19+0j) RUNNER plot_statevector_figure RUNNER result: {'Counts': {'01': 1024}} | |||||
Statevector:Download Figure |