# | 0x0 | 0x1 | 1x0 | 1x1 | Logic | Simple | Gate | Alt | Venn | Symbols |
---|---|---|---|---|---|---|---|---|---|---|
[L] | 0 | 0 | 1 | 1 | ||||||
[R] | 0 | 1 | 0 | 1 | ||||||
0 | 0 | 0 | 0 | 0 | [Contradiction] | 0 | [FALSE] | ![Venn0000] | ⊥ | |
1 | 0 | 0 | 0 | 1 | [Conjunction] | L and R | [AND] | MIN | ![Venn0001] | ∧ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from qiskit import * | |
from qiskit.tools.visualization import plot_bloch_multivector | |
from qiskit.tools.visualization import plot_histogram | |
# Creating a circuit with 3 quantum bits and 2 classical bits | |
qc = QuantumCircuit(3,2) | |
# Preparing inputs | |
qc.x(0) # Comment this line to make Qbit0 = |0> | |
qc.x(1) # Comment this line to make Qbit1 = |0> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from qiskit import * | |
from qiskit.tools.visualization import plot_bloch_multivector | |
from qiskit.tools.visualization import plot_histogram | |
# Creating a circuit with 8 quantum bits and 2 classical bits | |
qc = QuantumCircuit(8,2) | |
# Preparing inputs | |
qc.x(0) # Comment this line to make Qbit0 = |0> | |
qc.x(1) # Comment this line to make Qbit1 = |0> |