@@ -1076,24 +1076,11 @@ def _superoperator_(self) -> np.ndarray:
1076
1076
circuit_superoperator = moment_superoperator @ circuit_superoperator
1077
1077
return circuit_superoperator
1078
1078
1079
- @_compat .deprecated_parameter (
1080
- deadline = 'v0.16' ,
1081
- fix = 'Inject identity operators to include untouched qubits.' ,
1082
- parameter_desc = 'qubits_that_should_be_present' ,
1083
- match = lambda args , kwargs : 'qubits_that_should_be_present' in kwargs ,
1084
- )
1085
- @_compat .deprecated_parameter (
1086
- deadline = 'v0.16' ,
1087
- fix = 'Only use keyword arguments.' ,
1088
- parameter_desc = 'positional args' ,
1089
- match = lambda args , kwargs : len (args ) > 1 ,
1090
- )
1091
1079
def final_state_vector (
1092
1080
self ,
1093
1081
* ,
1094
1082
initial_state : 'cirq.STATE_VECTOR_LIKE' = 0 ,
1095
1083
qubit_order : 'cirq.QubitOrderOrList' = ops .QubitOrder .DEFAULT ,
1096
- qubits_that_should_be_present : Iterable ['cirq.Qid' ] = (),
1097
1084
ignore_terminal_measurements : bool = False ,
1098
1085
dtype : Type [np .complexfloating ] = np .complex128 ,
1099
1086
param_resolver : 'cirq.ParamResolverOrSimilarType' = None ,
@@ -1138,9 +1125,8 @@ def final_state_vector(
1138
1125
"""
1139
1126
from cirq .sim .mux import final_state_vector
1140
1127
1141
- program = Circuit (cirq .I (q ) for q in qubits_that_should_be_present ) + self
1142
1128
return final_state_vector (
1143
- program ,
1129
+ self ,
1144
1130
initial_state = initial_state ,
1145
1131
param_resolver = param_resolver ,
1146
1132
qubit_order = qubit_order ,
0 commit comments