-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class QuantumEntanglement: | ||
def create_entangled_pairs(self): | ||
"""Simulate the creation of entangled qubit pairs.""" | ||
print("Creating entangled qubit pairs.") | ||
return [("Q1", "Q2"), ("Q3", "Q4")] | ||
|
||
def measure_entangled(self, pair): | ||
"""Measure the state of an entangled pair.""" | ||
print(f"Measuring entangled pair: {pair}") | ||
|
||
# Example usage | ||
if __name__ == '__main__': | ||
entanglement = QuantumEntanglement() | ||
pairs = entanglement.create_entangled_pairs() | ||
for pair in pairs: | ||
entanglement.measure_entangled(pair) |